deprecated use or ng-init in angular,use func in controller instead

deprecated use or ng-init in angular,use func in controller instead