angular.js/test/service
Vojta Jina 9486590e1b refactor(ng:view) Make $route scope agnostic, add $contentLoaded event
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
2012-02-28 17:46:58 -08:00
..
filter refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
anchorScrollSpec.js refactor($autoScroll): rename to $anchorScroll and allow disabling auto scrolling (links) 2012-01-13 01:07:12 -08:00
browserSpecs.js feat($httpBackend): extract $browser.xhr into separate service 2011-11-30 11:17:22 -05:00
cacheFactorySpec.js feat($cacheFactory): add general purpose $cacheFactory service 2011-11-30 11:03:42 -05:00
compilerSpec.js feat($compiler): Allow attr.$observe() interpolated attrs 2012-02-21 22:46:01 -08:00
controllerSpec.js feat($compile) add locals, isolate scope, transclusion 2012-02-21 22:46:00 -08:00
cookiesSpec.js refactor(module): strict separation between module-config / app-runtime 2012-01-12 13:40:07 -08:00
cookieStoreSpec.js refactor(injector): turn scope into a service 2011-11-14 16:39:31 -08:00
deferSpec.js refactor(module): strict separation between module-config / app-runtime 2012-01-12 13:40:07 -08:00
documentSpec.js refactor(injector): turn scope into a service 2011-11-14 16:39:31 -08:00
exceptionHandlerSpec.js feature($exceptionHandler): $exceptionHandler now supports var_args 2012-01-25 11:46:34 -08:00
httpBackendSpec.js fix($httpBackend): Set current url, if not defined or empty string 2012-02-23 22:50:02 -08:00
httpSpec.js fix($http): Do not serialize File object 2012-02-25 18:49:54 -08:00
interpolateSpec.js refactor($interpolate): improve interpolation service add documentation 2012-01-25 11:46:36 -08:00
localeSpec.js refactor(services): migrate angular.service -> module 2011-11-14 16:39:33 -08:00
locationSpec.js fix($location): do not $digest if browser's url change fired within $apply/$digest 2012-01-14 11:23:12 -08:00
logSpec.js refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
parseSpec.js feat(parse): add support for local vars in expressions 2012-02-21 22:45:59 -08:00
qSpec.js style(q): rename src/Deferred.js to src/service/q.js 2012-01-03 17:48:09 -08:00
resourceSpec.js feat(strict mode): adding strict mode flag to all js files 2011-07-18 12:12:55 -07:00
routeParamsSpec.js refactor($route): move when/otherwise to provider 2012-02-28 17:46:58 -08:00
routeSpec.js refactor(ng:view) Make $route scope agnostic, add $contentLoaded event 2012-02-28 17:46:58 -08:00
scopeSpec.js feta(scope): watch object refference or equality 2012-02-23 15:01:08 -08:00
snifferSpec.js refactor(services): migrate angular.service -> module 2011-11-14 16:39:33 -08:00
windowSpec.js refactor(injector): turn scope into a service 2011-11-14 16:39:31 -08:00