How do I get Angular Material 2 to work with Angular 4?
- I re-installed Angular CLI and now it is at 1.0.0 using: npm install -g @angular/cli
- I created a new Angular 4 project using: ng new MyProject
- I tried to install Material 2 but it failed using: npm install --save @angular/material
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
-- @angular/[email protected]
Here is what I get when I do a ng -v for the project: @angular/cli: 1.0.0
node: 6.10.0
os: win32 x64
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/material: 2.0.0-beta.2
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0