1. angularjs 추가
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
2. 기본
<
html
ng-app>
<
head
>
<
title
>Hello World</
title
>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script></
head
>
<
body
>
<
input
type
=
"text"
ng-model
=
"sometext"
/>
<
h1
>Hello {{ sometext }}</
h1
>
</
body
>
</
html
>
angularjs를 사용하려면 기본적으로 ng-app을 설정해줘야함
ng-model을 이용하여 실시간으로 출력가능
live demo :: http://trandent.com/pList/14561220143817