fix(angular1_router): support templateUrl components
This commit is contained in:

committed by
Vikram Subramanian

parent
1174473e9c
commit
5586c29492
@ -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);
|
||||
|
Reference in New Issue
Block a user