From 5586c2949263242e405bed600a778fc98b4e02f2 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 10 Feb 2016 16:59:26 -0800 Subject: [PATCH] fix(angular1_router): support templateUrl components --- modules/angular1_router/src/ng_outlet.ts | 1 + modules/angular1_router/test/integration/router_spec.js | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/angular1_router/src/ng_outlet.ts b/modules/angular1_router/src/ng_outlet.ts index f6e346014a..273a6ffd6a 100644 --- a/modules/angular1_router/src/ng_outlet.ts +++ b/modules/angular1_router/src/ng_outlet.ts @@ -200,6 +200,7 @@ function ngOutletFillContentDirective($compile) { + function routerTriggerDirective($q) { return { require: '^ngOutlet', diff --git a/modules/angular1_router/test/integration/router_spec.js b/modules/angular1_router/test/integration/router_spec.js index 81218edeb4..9ef4224545 100644 --- a/modules/angular1_router/test/integration/router_spec.js +++ b/modules/angular1_router/test/integration/router_spec.js @@ -139,8 +139,12 @@ describe('router', function () { bindings: options.bindings, controller: getController(options), }; - if (options.template) definition.template = options.template; - if (options.templateUrl) definition.templateUrl = options.templateUrl; + if (options.template) { + definition.template = options.template; + } + if (options.templateUrl) { + definition.templateUrl = options.templateUrl; + } applyStaticProperties(definition, options); $compileProvider.component(name, definition);