I have almost everything migrated, but one thing is still not working.
The icons are not showing in my project.
I checked the variables.scss and the imports its there:
// Ionicons
// --------------------------------------------------
// The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/v2/ionicons/
$ionicons-font-path: "../assets/fonts";
@import "ionicons";
Also in the www folder the font seems to be there: assets/fonts/ionicons.xxx
In the image you can see an white rectangle when it should be a back button. (that button is add automaticaly because of the nav.push(xpto)).
I’m experiencing the same problem.
But if I restart ionic serve the icons appear. sometimes. I cannot figure out a pattern when they appear and when not.
I delete the .temp and www directories and the problem it’s still there…
I’m testing in the browser (Chorme 53) and I checked in the network tab in developers tools.
I don’t see any request for the ionicons font. Maybe is something broken during the build?
I changed the path to the Ionicons in variables.scss as below and it worked for me.
// Ionicons
// --------------------------------------------------
// The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/v2/ionicons/
$ionicons-font-path: "../assets/fonts";
@import "ionicons";
I am getting this problem frequently when debugging the app in chrome. This started after my app was converted to rc0.
If I delete the build folder in www and run ionic serve the icons come back and Then have few minutes they disappear again.
I had the same issue and just found the solution (for me, at least). As i upgraded an existing app to rc0 (the app started with like alpha.15 ), my variables.scss was missing the ionicons import. More preciesly, it was missing this part:
// Ionicons
// --------------------------------------------------
// The premium icon font for Ionic. For more info, please see:
// http://ionicframework.com/docs/v2/ionicons/
$ionicons-font-path: "../assets/fonts";
@import "ionicons";
I installed a new app ionic start --v2 myApp and then I started migrating my code to the new project.
I have the font path and import in my variabled.scss. In my project it never shows the icons.
I made a test and downloaded the ionic conference app using the version RC0.
The first time I built the project the icons were there… Then I stopped the ionic serve, and started it again… and it icons were not there…
Maybe there’s a bogos in the build scripts? Some weird cache?
well in my case it’s happening in a fresh RC0 project…
So far I have a feeling that ionic serve does not copy the fonts, or worse yet deletes them, but running the package.json build command copies them