Skip to content

Commit 5586c29

Browse files
petebacondarwinvikerman
authored andcommitted
fix(angular1_router): support templateUrl components
1 parent 1174473 commit 5586c29

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎modules/angular1_router/src/ng_outlet.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ function ngOutletFillContentDirective($compile) {
200200

201201

202202

203+
203204
function routerTriggerDirective($q) {
204205
return {
205206
require: '^ngOutlet',

‎modules/angular1_router/test/integration/router_spec.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,12 @@ describe('router', function () {
139139
bindings: options.bindings,
140140
controller: getController(options),
141141
};
142-
if (options.template) definition.template = options.template;
143-
if (options.templateUrl) definition.templateUrl = options.templateUrl;
142+
if (options.template) {
143+
definition.template = options.template;
144+
}
145+
if (options.templateUrl) {
146+
definition.templateUrl = options.templateUrl;
147+
}
144148

145149
applyStaticProperties(definition, options);
146150
$compileProvider.component(name, definition);

0 commit comments

Comments
 (0)