Web Framework
  • Introduction
  • Chapter1: Build Front-End Develope environment
    • 1.1.Install Sublime Text3 and packages
    • 1.2.Sublime plugin
      • 1.2.1.Package install control
      • 1.2.2.Emmet
      • 1.2.3.HTML-CSS-JS Prettify
      • 1.2.4 .SublimeLinter
      • 1.2.5.Install Sublime text Build system
      • 1.2.6.Pretty JSON
      • 1.2.7.SublimeHighlight
      • 1.2.8.SublimeAStyleFormatter
  • Chapter2: Angular.js
  • Chapter3: 3rd Party API
    • 3.function
  • Chapter4: React.js
    • 4.1.Introduction
    • 4.2.Getting started
    • 4.3.JSX
    • 4.4.life cycle
    • 4.5.Data flow: prop vs. prop.children, state
    • 4.6. Layout, Event Handing
    • 4.7.Using JQuery in React
    • 4.8.Using D3.js in React
    • 4.9.Dynamic Routing
  • Chapter5: Webpack
  • Chapter6: web driver IO & mocha
  • Chapter7: RWD
    • 7.1.利用Sass & media query在不使用框架下完成RWD
  • Chapter8: React native
Powered by GitBook
On this page
  • This section contain the following items:
  • 1.Introduction
  • 2.Life Cycle

Was this helpful?

Chapter2: Angular.js

This section contain the following items:

  1) Introduction
  2) Life cycle

1.Introduction

2.Life Cycle

  1) run, config , controller的執行順序:
    1.app.config()
    2.app.run()
    3.directive's compile functions (if they are found in the dom)
    4.app.controller()
    5.directive's link functions (again if found)

    example:http://jsfiddle.net/ysq3m/
    reference:http://iambigd.blogspot.tw/2014/08/angularjs-angular.html
  2) 使用經驗:
     1.將需要驗證使用者身份的部分放到run中
     2.將頁面中與使用者互動的部分放在controller
     3.將共同的功能($http)放到service
Previous1.2.8.SublimeAStyleFormatterNextChapter3: 3rd Party API

Last updated 5 years ago

Was this helpful?