angular-2-aot-sandbox | testing Angular 2 's AoT | Frontend Framework library
kandi X-RAY | angular-2-aot-sandbox Summary
kandi X-RAY | angular-2-aot-sandbox Summary
This repo is used to formalize what we can and cannot do with AoT (through ngc or @ngtools/webpack).
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-2-aot-sandbox
angular-2-aot-sandbox Key Features
angular-2-aot-sandbox Examples and Code Snippets
Community Discussions
Trending Discussions on angular-2-aot-sandbox
QUESTION
I am facing issue when i want to compile my current project in AOT with following package version :
- @ngtools/webpack@6.0.3
- @angular@latest (6.0.2)
- Webpack@4.0.0
my webpack and tsconfig.json configuration can be find here
I have facing some issue related to private
/ protected
scope used on template and some extract parameter gived to some functions who doesn't really need it (Exemple $event who are not used on EventBinding).
Now i have this following list where i can't find where is my issue :
/path/to/app/header/main-header/main-header.component.html(85,7): : Directive TableOfContentComponent, Expected 0 arguments, but got 1. (1,1): : Directive TableOfContentComponent, Expected 0 arguments, but got 1.
my main-header.component.html
file contain :
// main-header.component.html
ANSWER
Answered 2018-Nov-26 at 12:26Well I have prepared here a minimal, complete, and verifiable example
I have noticed a missing parameter with @HostListner
sample of issue bellow :
QUESTION
I've been having some issues with the inconsistencies between the JIT and AoT compilers. The most recent error that has stumped me was Error: Can't resolve all parameters for IndexedDBCache
. IndexedDBCache is a service that depends on a string
parameter:
Please note this issue also arises when I remove the 'protected' property!
...ANSWER
Answered 2017-Jun-12 at 09:09There was a misunderstanding of the issue at hand. The classes to be factoried are not services themselves and as such do not need the @Injectable
property. More detail to be found at Creating AoT compatible Service Factories
QUESTION
I'm trying to create a service factory for a caching service. The major requirement is that a single service can be instanced with a different string each time.
The final result will have multiple cache services each defined by a unique databaseName
. Each cache can have one or more stores also defined by a unique storeName
. Other services will be able to use these stores:
ANSWER
Answered 2017-Jun-12 at 09:07
Based on feedback from users @estus and @Toxicable the class that will only be instanced by a Factory
should not be @Injectable
itself. Removing this tag from the IndexedDBCache
and IndexedDBStore
classes will resolve the issue.
The Factory
also has to be in the specific form
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-2-aot-sandbox
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