Side Nav bar not working - 'ng-template' is not a known element:

谁都会走 提交于 2019-12-24 06:00:33

问题


I followed all the steps that are shown in the material.io

npm install --save @angular/material

When I am trying to use the side-nav bar component that is shown at -https://material.angular.io/components/component/sidenav

I throws 'ng-template' is not a known element' error.


回答1:


material.io is different than angular material: material.angularjs.org, is two different libs, so you need to install, use: npm install angular-material




回答2:


Material-UI is a react library that is built with Google's Material Design as the basis.

Is this issue related to MUI or only the angular library also mentioned?



来源:https://stackoverflow.com/questions/43349956/side-nav-bar-not-working-ng-template-is-not-a-known-element

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!