Using ng-controller in ionic applications

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

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

1 Like