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

只要将

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

原文地址:https://www.cnblogs.com/XIE7654/p/6598569.html