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

Ionic 2.0 navigation error

$
0
0

@mmpco wrote:

Hello I've been used to ionic 1 and I am currently new to this. Once I put the nav controller in the constructor it gives me and error and I get a blank page. The error says
ERROR in ./app/pages/page4/page4.js

Module build failed: SyntaxError: /Users/*/Desktop/M/app/pages/page4/page4.js: Unexpected token (8:16)

6 | })
7 | export class Page4 {
8 | constructor(nav: NavController) {
^ <-- this is under the word Nav
9 |
10 | this.nav = nav;
11 | }

Ive been getting that error for a long time and don't know how to fix it. Sorry if I sound like a noob.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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