These are chat archives for angular/angular-2-ionic-2

5th
Nov 2016
Jade
@zjhiphop
Nov 05 2016 03:23
In my opinion, third party lib:
  1. should use node module as posibble as u can.
  2. Or pls add a new folder named libs to assets dir.
  3. For bower_component, u should import to main.html manually
@mbj36
WEBER Antoine
@TwanoO67
Nov 05 2016 11:33
hello
I'm having an issue about "no provider for NavController"
do I have to provide NavController myself in the app.module ?
shouldn't it be already provided by ionic ?
Kyle Roach
@iRoachie
Nov 05 2016 13:13
@mbj36 You can put it the same place ionic puts it’s service-worker.js. Thats under src/assets. Everything in the assets folder gets copied over on build
Mohit kumar Bajoria
@mbj36
Nov 05 2016 15:14
I found this
Kyle Roach
@iRoachie
Nov 05 2016 15:16
That’s for libraries on npm
Robert
@robert197
Nov 05 2016 15:16
use yarn
Mohit kumar Bajoria
@mbj36
Nov 05 2016 15:17
but when we install bower on ionic 2 app, bower_components is created outside src folder
Kyle Roach
@iRoachie
Nov 05 2016 15:17
@robert197 Yarn is just a cli for npm. It still uses the same node modules
@mbj36 What package do you need from bower, that’s not on npm?
Mohit kumar Bajoria
@mbj36
Nov 05 2016 15:18
i am using sw-toolbox which is also present in npm but when i use that package inside index.html in my src folder
It gives 404 error not found
Kyle Roach
@iRoachie
Nov 05 2016 15:19
If it’s from npm you don’t add the script in your index. Instead you import the moduel when you need to use it
Mohit kumar Bajoria
@mbj36
Nov 05 2016 15:20
but i think sw-toolbox still doesn't have typescript support
Kyle Roach
@iRoachie
Nov 05 2016 15:21
@mbj36 It doesn’t have to have typescript support for you to use it
Mohit kumar Bajoria
@mbj36
Nov 05 2016 15:24
@iRoachie have u used sw-tooolbox ?
Kyle Roach
@iRoachie
Nov 05 2016 15:26
Not personally.
Thierry
@devbieres
Nov 05 2016 17:16
Hi, This maybe a more "cordova" question but you might help me ... In a component I'm using a form which contains a button. I used (click)="submit" to manage user submit. In the process and if everything is ok, I used router.navigate. Works great in browser but in cordova app (android) I got an error. If I simply move the button outside the <form></form> seems to work as expected. Any idea ?