angular-bind-html-compile | trusted HTML , allowing directives | Frontend Framework library
kandi X-RAY | angular-bind-html-compile Summary
kandi X-RAY | angular-bind-html-compile Summary
Directive that calls $compile on trusted HTML, allowing directives in an API response.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-bind-html-compile
angular-bind-html-compile Key Features
angular-bind-html-compile Examples and Code Snippets
Community Discussions
Trending Discussions on angular-bind-html-compile
QUESTION
I am migrating an old AngularJS application to use Webpack and I am splitting it into three parts, which I want to represent as AngularJS modules:
- src-ts-admin
- src-ts-common
- src-ts-store
For example I'd like 'src-ts-admin' to consume services from 'src-ts-common', but unfortunately webpack bundles files in the wrong order for AngularJS Dependency Injection, so that I end up with errors like ..
Error: "[$injector:unpr] Unknown provider: filterServiceProvider <- filterService <- initializerService
.. where initializerService is a service from src-ts-admin and filterService is from src-ts-common. The core of the problem is that
- module("ADMIN").service("initializerService") executes before
- module("COMMON).service("filterService")
.. although I cannot spot the problem in the dependencies.
File Overview src-ts-admin: app.tsThis is the webpack entry point, however not so interesting. The application routing will trigger app.initializer.ts.
...ANSWER
Answered 2020-Jan-07 at 15:14Your dependencies are inverted, Module
should import its deps (other modules or filters / services / components).
If you will follow this, your AppModule
will import its child modules, which in it turn will import its services.
That means that your services should only export the class. The relevant Module should import the service class, and register it on the module & export the Module name. The parent Module should import its child Modules.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-bind-html-compile
bower install angular-bind-html-compile
'angular-bind-html-compile'
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page