AngularJS の理解用のメモ
- Firefox で動作確認した方が良い Components の templateUrl を解決できる。(ローカルファイルアクセス可能)
- GitHub - angular/angular-phonecat: Tutorial on building an angular application.
/ Tutorial / 0 - Bootstrapping AngularJS
- <html ng-app>
- <script src="bower_components/angular/angular.js">
- Nothing here {{'yet' + '!'}}
- Nothing here yet!
/ Tutorial / 2 - AngularJS Templates AngularJS
- View and Template
- app/index.html
- ng-repeat = foreach
- app/index.html
- Model and Controlle
- app/app.js
/ Tutorial / 3 - Components AngularJS
4 - Directory and File Organization AngularJS
- templateUrl
- コンポーネントの template 部分を外出した時の定義方法。
- 参照順序
- app.module.js → phone-list.module.js → phone-list.component.js → phone-list.template.html
@IT
- AngularJSの「サービス」で理解するDI(Dependency Injection:依存性注入)の基本:MEANスタックで始めるWebアプリ開発入門(9) - @IT
- 今、使用している AngularJS のバージョンは 1.5 なので、この記事を中心にみた方が良い。