ng执行顺序

  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)

http://hellobug.github.io/blog/angularjs-directive-2-compile-vs-link/

results matching ""

    No results matching ""