문서의 이전 판입니다!


Angularjs

지시어(Directives)

ng-app

앱 모듈을 페이지에 붙임

<html ng-app="store">

ng-controller

컨트롤 기능을 페이지에 붙임

<body ng-controller="StoreController as store">

ng-show/ng-hide

표현문에 따라 특정 구역을 표시/숨김

<h1 ng-show="name"> hello, {{name}} </h1>

ng-repeat

특정 구역을 배열의 각 항목 만큼 반복함

<li ng-repeat="product in store.products"> {{product.name}} </li>

필터(Filters)

<em class="pull-right">{{product.price | currency}}</em>

참조