You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Shoocky I'm requiring the library distribution using webpack manually (instead of importing it from the source files), which I acquired from Prism's download builder. Then using Angular's AfterViewChecked lifecycle event I use the global Prism reference (unfortunately).
In the .ts file where I need it:
declare var Prism:any;
require('./lib/prism.ts');
export class YourApp implements AfterViewChecked {
ngAfterViewChecked():any {
return Prism.highlightAll();
}
}
Then to prevent it from being included in my own bundle:
In external.ts (for any other libraries I need to bootstrap this way):
ng2-prism still uses old classes from Angular2 since rc1, causing angular/angular2-seed#79.
The text was updated successfully, but these errors were encountered: