Using ng-controller in ionic applications


#1

Can anyone tell how to use ng-controller in ionic2 application . Its shows error when i wrote

 .controller('functionname',function($scope,$timeout){
       //rest of the code
  })

Thanks


#2

You cannot use ng-controller in Ionic 2+/Angular2+.
Angular2 is pretty drastically different from AngularJS.