TypeError: Cannot read property 'replace' of undefined ----angular2

TypeError: Cannot read property 'replace' of undefined ----angular2_第1张图片

只要将

TypeError: Cannot read property 'replace' of undefined ----angular2_第2张图片

// encapsulation: ViewEncapsulation.None 注释掉就行
 
  

转载于:https://www.cnblogs.com/XIE7654/p/6598569.html

你可能感兴趣的:(TypeError: Cannot read property 'replace' of undefined ----angular2)