Specifying the theme path in Angular2
See original GitHub issueI am trying to change the theme, used by ng2-ace-editor, to ‘clouds’ using this.editor.setTheme('clouds')
. I tried various path variants like 'brace/theme/cloudsetc - to no avail. What is the way of setting the
basePath` (which I think I need) in Angular2 (TypeScript)?
Looked at AceEditorComponent.prototype.setTheme
in ng2-ace-editor.js
and saw the name of the theme is concatenated to ace/theme/
- it does not work for me though. DevTools spit out a 404 because of http://localhost:4200/theme-clouds.js
Wondering what the problem could be.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top Results From Across the Web
Angular 2 defining base url - Stack Overflow
Ok. In my local environment it uses the new path. But on my server it still doesn´t find the resources. – Max.
Read more >Common Routing Tasks - Angular
Define your routes in your Routes array. Each route in this array is a JavaScript object that contains two properties. The first property,...
Read more >Angular 2 Series - Part 4: Component Router In-Depth - Auth0
We do this by setting setAsDefault to true on the /details route. // app/User.ts ... @RouteConfig([ { path ...
Read more >Angular Router: Child Routes, Auxiliary Routes, Master Detail
This is a comprehensive guide to the fundamental concepts of the Angular Router: routes, paths, components, outlets. We will cover both child ...
Read more >Get Started with AG Grid - Angular Data Grid
Grid Module; Grid CSS and Themes; Setting Row Data; Setting Column Definitions; Accessing the Grid's API; Consuming Grid Events; Grid Properties; Getting ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My eye slipped over this comment:
now everything runs fine. Just unsure if
npm rebuild
was needed or restartingng serve
would suffice@ScottSpittle Thank you for your insights… Finally what worked for me was to add this:
to the index.html on the root folder of the project. Of course this was adding all the needed files from ace-builds to the folder assets/ace.
I leave it here in case there is some one else that has to recur to this variant.