Skip to content

Update supporting Angular example/repo #126

Open
@edusperoni

Description

@edusperoni

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions