Reputation: 1120
i am working on an angular-v6 app. Need drag and drop feature
which is available in v7-beta2
Thanks in advance.
Upvotes: 2
Views: 8309
Reputation: 1378
Update the packages below if you are using them:
npm install @angular/cdk@latest @angular/material@latest @angular/material-moment-adapter@latest
or
one at a time
npm install @angular/cdk@latest
npm install @angular/material@latest
npm install @angular/material-moment-adapter@latest
Upvotes: 2
Reputation: 1466
First of all you need to install latest beta version of @angular/cli you can install it by npm as follows
npm i -g @angular/cli@next
Note :: you may be needed sudo
if there is permission issue.
Second never depends on 100% beta versions as it may broke in Production you may got into serious problems
and as there is another way of adding Material design by Angular Devkit 6+ you need to just run in your existing project it will add stable version of @angular/material which is supported by your cli version.
ng add @angular/material
To update packages you can try ng update
for lower angular version projects there is official support page for version updating methods.
Its better to wait until stable version release.
Upvotes: 2