angular2 refresh component template [duplicate]
问题 This question already has answers here : How to clear template cache? (9 answers) Closed 3 years ago . I have changed my component template html but the changes are not been reflected in my app. Is there a way to force the app to refresh all of it's components and templates? Having looked around most people say to use ApplicationRef.tick() - similar to Angular 1's $rootScope.$digest() -- i.e., check the full component tree NgZone.run(callback) - similar to $rootScope.$apply(callback) -- i.e.,