-
Notifications
You must be signed in to change notification settings - Fork 5
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
Angular 2 integration #12
Comments
I don't use Angular myself but it should be exactly the same thing as it's right now. The plugin behaves like any other {N} widget. About .helpers, it seems my .gitignore "ignore" that file. You can create the file using this tutorial: https://www.nativescript.org/blog/use-async-await-with-typescript-in-nativescript-today You can also find it in tns-modules/nativescript-carousel-view folder. Move it to app folder. |
Thanks a lot. I'm closing it as I figured how to use it for ng2. One needs to make elements visible to angular bootstrap/templates. For example, for
|
Cool, will include this in the documentation. |
Where do you put this code? |
This has to be before angular boot strap as far as I know. So |
Thanks |
Hi, Its return type is the Nativescript Core View in |
If you can use builder from Angular then you can return |
You can certainly use builder, but the real problem here is to use angular component as template. For this you have to dynamically bootstrap the component and convert it to I did not invest much time into this, but I assume that if you bootstrap/compile a component proper angular way, it will return a view because compiler uses {N} renderer. But again, you cannot assume anything with ng2 these days. Dynamic component loading would be the way to try make this work. |
Found this thread but example link is dead NativeScript/NativeScript#3084 |
@Bronzovik this is my understanding,too. I had a look at angular dynamic component construction. Basically you can create and display the angular view from a template with
But to my mind there is a problem: |
@Bronzovik @FLEXXIS yes, the view is added to CarouselView via native methods. I don't use Angular so, i am sorry i cannot provide too much support. |
Hi! Thanks for developing this. I'm trying to integrate it with NS Angular 2. Does anyone have any tips on how to better achieve that?
As a side note, demo app does not run for me on android (complains about ./helpers).
The text was updated successfully, but these errors were encountered: