JoshDSommer / nativescript-slides

A NativeScript plugin that is for Intro Tutorials, Image Carousels or any other slide functionality
Other
70 stars 32 forks source link

Add link to Angular Component app #38

Closed leocaseiro closed 8 years ago

leocaseiro commented 8 years ago

I took a few hours to understand how to implement with Angular, so I added a demo on my own issue and I added a link on docs.

Hope will help others!

JoshDSommer commented 8 years ago

Hey thanks man, sorry you had some troubles, but I'm glad you were able to figure it out. I appreciate the PR should help some else in the future.

Feel free to add yourself as a contributor to the readme file.

leocaseiro commented 8 years ago

Cheers mate!

No worries. I mixed it up a little. Still new with {N} + Angular though.

JoshDSommer commented 8 years ago

@leocaseiro as are we all, I hope to figure out one day to make the plugin essentially just work and not have to do that stuff in ngAfterViewInit maybe in time

leocaseiro commented 8 years ago

Sure! But I believe is more with {N} itself.

If you know the steps, is not a big deal.

  1. Register 2 elements
  2. Template with angular="true"
  3. @ViewChild()
  4. ngAfterViewInit() => constructView()