Side Nav bar not working - 'ng-template' i

2019-07-30 07:32发布

问题:

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?