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);