How do I teach WebStorm 9 inspector to recognize Angular Material Design tags/attributes?

前端 未结 5 1187
萌比男神i
萌比男神i 2020-12-14 07:23

Currently, all my angular material HTML attributes are highlighted in yellow with WebStorm 9 (Mac OS X Yosemite) warning: \"Attribute [name] is not allowed here\".

<

5条回答
  •  鱼传尺愫
    2020-12-14 07:53

    I highly recomend you to install the Angular.js plugin:

    1. Go to menu File > Settings (or ctrl + alt + S if you're on Windows);
    2. Select Plugins in the window that'll open;
    3. Click in the Browse Repositories button;
    4. Type AngularJS in the search field. Select the plugin;
    5. Click Install Plugin.

    The plugin is incumbed to read @ngdoc annotations present in ngMaterial sources and create documentation for their directives.

    It seems to support WebStorm and other IDEs, but I could not find it in the plugin registry while filtering by other IDEs. Maybe it'll work inside WebStorm...

    Anyway, this is what you get:

提交回复
热议问题