File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -430,17 +430,16 @@ function $ViewDirectiveFill(
430
430
}
431
431
432
432
// Wait for the component to appear in the DOM
433
- if ( isString ( cfg . viewDecl . component ) ) {
434
- const cmp = cfg . viewDecl . component ;
435
- const kebobName = kebobString ( cmp ) ;
433
+ if ( isString ( cfg . component ) ) {
434
+ const kebobName = kebobString ( cfg . component ) ;
436
435
const tagRegexp = new RegExp ( `^(x-|data-)?${ kebobName } $` , 'i' ) ;
437
436
438
437
const getComponentController = ( ) => {
439
438
const directiveEl = [ ] . slice
440
439
. call ( $element [ 0 ] . children )
441
440
. filter ( ( el : Element ) => el && el . tagName && tagRegexp . exec ( el . tagName ) ) ;
442
441
443
- return directiveEl && angular . element ( directiveEl ) . data ( `$${ cmp } Controller` ) ;
442
+ return directiveEl && angular . element ( directiveEl ) . data ( `$${ cfg . component } Controller` ) ;
444
443
} ;
445
444
446
445
const deregisterWatch = scope . $watch ( getComponentController , function ( ctrlInstance ) {
You can’t perform that action at this time.
0 commit comments