fix(angular1_router): support templateUrl components
This commit is contained in:
parent
1174473e9c
commit
5586c29492
|
@ -200,6 +200,7 @@ function ngOutletFillContentDirective($compile) {
|
|||
|
||||
|
||||
|
||||
|
||||
function routerTriggerDirective($q) {
|
||||
return {
|
||||
require: '^ngOutlet',
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue