Angular2 - Directive not working when not declared in the same module
In your SharedModule
you need to export
the ModalDirective
...@NgModule{( ... exports: [ModalDirective])}export class SharedModule { ... }
See docs on shared modules for more info