Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70865

viewChild unexpected token

$
0
0

@emoryr wrote:

Hello guys,

I am facing a problem with ViewCHild. If you have any idea thanks.

I am trying to compile using the example of Slide to go to another slide:

But when I put this line of code:
@ViewChild('mySlider') slider: Slides;

I get the error below:

s/config/config-opcoes.js: Unexpected token (10:31)
** 8 | export class ConfigOpcoesPage {**
** 9 | **
> 10 | @ViewChild('mySlider') slider: Slides;

Basic problem with the ":", I read in other post but they just resolve to constructor

Thank you in advanced

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70865

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>