Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic Framework - Uploading to Ionic View app, not getting latest javascript files, possibly cache still exists?

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)

  • Just to let you know, I 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??!!!

like image 866
jonprasetyo Avatar asked Apr 25 '15 15:04

jonprasetyo


1 Answers

For anyone that may be viewing this that may be having a problem with this in Ionic V2 apps not updating in the Ionic View App the process to execute is:

  1. ionic serve
  2. ionic upload
  3. clear app data on view app

You'll notice that when you run ionic serve the build process executes which will update your files. Then you upload and your changes will be there. I hope this helps someone in the future.

like image 105
Chad Elias Avatar answered Oct 21 '22 11:10

Chad Elias