It is surprisingly hard to find the answer, please indicate if I was looking for rights, and this is a duplicate question.
I have an Angular2 application (2.0.0-beta.14) and I have problems, including a third-party css file. I downloaded materialize-css via npm and I see that the file is in node_modules/materialize-css/bin/materialize.css .
I want this css file to be visible to my entire application.
At the highest level, I tried to include it in the index.html head <link rel="stylesheet" href="./node_modules/materialize-css/bin/materialize.css" media="screen"> section, but I canβt understand where it is being served or even if it is being served.
At a lower level, I tried to define it in the application styleUrls token.
@Component({ selector: 'myApp', providers: [], pipes: [], directives: [ROUTER_DIRECTIVES], templateUrl: 'app/henna.html', styleUrls: ['materialize.css'] })
I tried different styles of styles trying to find the file, but it seems that the problem is that the file is not available.
Please let me know more information that is needed to help, this is my first application that I used Angular2.
source share