mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
No description
Problems: - controller was instantiated immediately on $afterRouteChange (even if no content), that's different compare to ng:controller, which instantiates controllers after compiling - route listened on current scope ($afterRouteChange), so if you were listening on $rootScope ($afterRouteChange), you get called first and current.scope === undefined, which is flaky - route handles scope destroying, but scope is created by ng:view - route fires after/before route change even if there is no route (when no otherwise specified) Solution: - route has no idea about scope, whole scope business moved to ng:view (creating/destroying) - scope is created (and controller instantiated) AFTER compiling the content - that means on $afterRouteChange - there is no scope yet (current.scope === undefined) - added $contentLoaded event fired by ng:view, after linking the content |
||
|---|---|---|
| .externalToolBuilders | ||
| .settings | ||
| css | ||
| docs | ||
| example | ||
| i18n | ||
| images | ||
| lib | ||
| logs | ||
| perf | ||
| regression | ||
| src | ||
| test | ||
| tmp | ||
| .gitignore | ||
| .project | ||
| angularFiles.js | ||
| angularjs.ftp | ||
| CHANGELOG.md | ||
| gdocs.js | ||
| gen_docs.sh | ||
| gen_jstd_configs.js | ||
| java | ||
| LICENSE | ||
| nodeserver.sh | ||
| pom.xml | ||
| Rakefile | ||
| README.md | ||
| server-coverage.sh | ||
| server-scenario.sh | ||
| server.sh | ||
| test-coverage.sh | ||
| test-jquery.sh | ||
| test-mocks.sh | ||
| test-perf.sh | ||
| test-reset.sh | ||
| test-scenario.sh | ||
| test.sh | ||
| version.yaml | ||
| watchr-docs.rb | ||
| watchr.rb | ||
AngularJS
- Web site: http://angularjs.org
- Tutorial: http://docs.angularjs.org/#!/tutorial
- API Docs: http://docs.angularjs.org
- Developer Guide: http://docs.angularjs.org/#!/guide
Compiling
rake compile
Running Tests
./server.sh # start the server
open http://localhost:9876/capture # capture browser
./test.sh # run all unit tests