I am wondering how to use the DirectiveResolver object to alter a given Component.
DirectiveResolver
Component
Dependencies (ng2 moves so fast these days things become obs
You need to pass extra providers by bootstrapping application to override default compiler providers.
So i think this should work:
platformBrowserDynamic().bootstrapModule(AppModule, { providers: [ { provide: DirectiveResolver, useClass: myViewResolver } ] });
Plunker Example