File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
modules/@angular/compiler/src/view_compiler Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -514,18 +514,19 @@ function createViewFactory(
514
514
}
515
515
if ( view . viewIndex === 0 ) {
516
516
var animationsExpr = o . literalMap ( view . animations . map ( entry => [ entry . name , entry . fnExp ] ) ) ;
517
- initRenderCompTypeStmts = [ new o . IfStmt ( renderCompTypeVar . identical ( o . NULL_EXPR ) , [
518
- renderCompTypeVar
519
- . set ( ViewConstructorVars . viewUtils . callMethod (
520
- 'createRenderComponentType' ,
521
- [
522
- o . literal ( templateUrlInfo ) ,
523
- o . literal ( view . component . template . ngContentSelectors . length ) ,
524
- ViewEncapsulationEnum . fromValue ( view . component . template . encapsulation ) , view . styles ,
525
- animationsExpr
526
- ] ) )
527
- . toStmt ( )
528
- ] ) ] ;
517
+ initRenderCompTypeStmts = [ new o . IfStmt (
518
+ renderCompTypeVar . identical ( o . NULL_EXPR ) ,
519
+ [ renderCompTypeVar
520
+ . set ( ViewConstructorVars . viewUtils . callMethod (
521
+ 'createRenderComponentType' ,
522
+ [
523
+ view . genConfig . genDebugInfo ? o . literal ( templateUrlInfo ) : o . literal ( '' ) ,
524
+ o . literal ( view . component . template . ngContentSelectors . length ) ,
525
+ ViewEncapsulationEnum . fromValue ( view . component . template . encapsulation ) ,
526
+ view . styles ,
527
+ animationsExpr ,
528
+ ] ) )
529
+ . toStmt ( ) ] ) ] ;
529
530
}
530
531
return o
531
532
. fn ( viewFactoryArgs , initRenderCompTypeStmts . concat ( [ new o . ReturnStatement (
You can’t perform that action at this time.
0 commit comments