Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update supporting Angular example/repo #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
edusperoni opened this issue Apr 10, 2019 · 0 comments
Open

Update supporting Angular example/repo #126

edusperoni opened this issue Apr 10, 2019 · 0 comments
Labels

Comments

@edusperoni
Copy link

Currently https://docs.nativescript.org/plugins/angular-plugin tells you just to create an angular directory and be done with it.

Unfortunately, if you do that, aot will be broken, so you also need the ngc compiler and change the whole way the plugin is built. Some use tsc && npm run build.native && ngc some use just ngc.

Using the aot compiler also means you can't do

export * from "./<your-plugin-name>.module";

in index.ts, it has to be export { <module-here> } from "./<your-plugin-name>.module"

This seed is also using "typescript": "~3.3.3", which is not compatible with ngc current stable (7.2.12 at the time of writing)

Adding Angular support appears to be "easy", but is actually a way bigger hassle that isn't documented anywhere, and it's the kind of thing that is "hard to do it right".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants