This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ function $RouteProvider(){
373
373
374
374
forEach ( next . resolve || { } , function ( value , key ) {
375
375
keys . push ( key ) ;
376
- values . push ( isFunction ( value ) ? $injector . invoke ( value ) : $injector . get ( value ) ) ;
376
+ values . push ( isString ( value ) ? $injector . get ( value ) : $injector . invoke ( value ) ) ;
377
377
} ) ;
378
378
if ( isDefined ( template = next . template ) ) {
379
379
} else if ( isDefined ( template = next . templateUrl ) ) {
Original file line number Diff line number Diff line change @@ -232,10 +232,10 @@ describe('$route', function() {
232
232
return deferB . promise ;
233
233
} ) ;
234
234
$routeProvider . when ( '/path' , { templateUrl : 'foo.html' , resolve : {
235
- a : function ( $q ) {
235
+ a : [ '$q' , function ( $q ) {
236
236
deferA = $q . defer ( ) ;
237
237
return deferA . promise ;
238
- } ,
238
+ } ] ,
239
239
b : 'b'
240
240
} } ) ;
241
241
} ) ;
@@ -434,8 +434,8 @@ describe('$route', function() {
434
434
} ) ;
435
435
} ) ;
436
436
} ) ;
437
-
438
-
437
+
438
+
439
439
it ( 'should match route with and without trailing slash' , function ( ) {
440
440
module ( function ( $routeProvider ) {
441
441
$routeProvider . when ( '/foo' , { templateUrl : 'foo.html' } ) ;
You can’t perform that action at this time.
0 commit comments