angularjs - ng controller having '/' seperator Angular JS -
i new angularjs programming. today reading interview questions on angiular js , find ng-controller having '/' , names not aware . mean. please help me.
question how initialize select box options on page load in angular js ?
answer : initialize work help of "ng-init"
<div ng-controller="myapps/mydashboard/myaccount" ng-switch on="!!myaccounts" ng- init="loadmydataydata()">
thanks in advance.
afaik, doesn't mean special. it's name of controller, happens contain slashes:
app.controller("the/name/you/want", function($scope) { ...));
angularjs angularjs-directive angularjs-scope
No comments:
Post a Comment