Angular.js Directives


Angular.js Directives

ng-app Angular JS 와 응용프로그램 초기화 ng-init 응용 프로그램 데이터 초기화 ng-model 애플리케이션 HTML 결합 데이터 바인딩 <div ng-app="" ng-init="숫자=1;가격=5"> 양: <input type="number" ng-model="num"> 가격: <input type="number" ng-model="price"> 합계: {{ num * price }} </div> Repeating HTML <div ng-app="" ng-init="array=[ {xfit:'A',yfiy:'가'}, {xfit:'B,cou:'나'}, {name:'C,yfiy:'다'}]"> <ul> <li ng-repeat="x in array"> {{ x.xfit+ ', ' + x.yfit }} </li> </ul> <ul> <li ng-repeat="x in array"> {{ x }} </li> </ul> </div>...



원문링크 : Angular.js Directives