angular.js/test
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
..
jstd-scenario-adapter chore(formating): clean code to be function() { 2011-10-11 11:01:46 -07:00
scenario docs(compiler): update the compiler docs 2012-01-25 11:53:59 -08:00
service refactor(ng:view) Make $route scope agnostic, add $contentLoaded event 2012-02-28 17:46:58 -08:00
widget refactor(forms): Even better forms 2012-02-28 17:46:58 -08:00
angular-mocksSpec.js feature($exceptionHandler): $exceptionHandler now supports var_args 2012-01-25 11:46:34 -08:00
AngularSpec.js bug(equals): incorect comparison of dates 2012-02-23 13:57:28 -08:00
ApiSpecs.js fix(ng:repeat): support repeating over array with null 2012-01-06 12:19:39 -08:00
BinderSpec.js refactor(forms): Even better forms 2012-02-28 17:46:58 -08:00
directivesSpec.js feat(directive.style): Do not compile content of style element 2012-02-28 17:41:30 -08:00
InjectorSpec.js feat($provide): added constant 2012-02-22 13:28:42 -08:00
jqLiteSpec.js feat($compile): support compiling text nodes by wrapping them in <span> 2012-02-21 22:46:00 -08:00
jquery_alias.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jquery_remove.js fix(specs): fix jQuery to jqLite binding on IE8 2011-09-16 02:44:33 +02:00
jQueryPatchSpec.js chore(formating): clean code to be function() { 2011-10-11 11:01:46 -07:00
JsonSpec.js style: prefer single quotes + some whitespaces 2012-01-03 15:09:00 -08:00
loaderSpec.js feat($provide): added constant 2012-02-22 13:28:42 -08:00
markupSpec.js refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
matchers.js chore(log): generic test log service with custom toEquals matcher 2012-01-23 22:33:28 -08:00
ResourceSpec.js fix($resource): forwardport exposing headers from 0.9.19 2011-12-01 16:20:08 -05:00
sanitizerSpec.js refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
ScenarioSpec.js refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
testabilityPatch.js refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
widgetsSpec.js refactor(ng:view) Make $route scope agnostic, add $contentLoaded event 2012-02-28 17:46:58 -08:00