First of all I am new to Ionic2 and even Ionic and Angular in general.
I am trying to implement slides and I need to have a reference to the slider so I can trigger the next event with a custom button.
To do this, it is suggested to get a reference like so (In TypeScript): @ViewChild('slides_element_id') slider;
Since I am using ES6, it gives me: Missing class properties transform
And this @ViewChild('onboarding_slides') slider: any;
Gives Unexpected token for the :
I see alot of people saying that this is not the way to do it in ES6 as it is not supported, and I don’t really mind because I’m not a fan of strong tying. But I see no examples on how to properly get a reference to the silder.
I will try again tomorrow, I must be tired, this look more complicated than I expected. I thought it would be easy to get a reference to an element in the page.