I am self teaching Ionic framework i have loaded up the ionic start myApp tabs
according to the Getting started page from Ionic framework (http://ionicframework.com/getting-started/)
Everything is good, up and running on my mac, can serve and can emulate. Now... when I used the ionic upload
to the Ionic View app on my mobile its fine - everything as expected.
BUT when i changed something for example in the controller.js file:
.controller('AccountCtrl', function($scope) {
$scope.settings = {
enableFriends: true
};
});
to enableFriends:false
and I ionic upload
again, then i 'sync to latest' on the Ionic View app on my iphone... I am still getting the enableFriends:true (because the option was set to true - switch is green)
ionic build ios
before the ionic upload
, I tried to delete the app in the Ionic View app on my phone and re uploaded it.So I am suspecting that the controllers.js is cached... if yes.. how can i clear this cache??!!!
I just found a solution - but not sure its the correct way but it works!
in the ionic.project file...
{
"name": "someProject",
"app_id": "2312n33"
}
delete the app_id!!!!
{
"name": "someProject",
"app_id": ""
}
this will generate a new app and it works! However if there is a better way to do this like clearing the cache (maybe there is the right way) - please post.
UPDATE - 20 May 2015
Ionic View App just fixed the caching issue where sync'ed changes weren't showing - in Version 1.0.6 Therefore this should not be a problem anymore.