Cannot find module angular 2_material / material

I am trying to use angular2 with angular2_material and I am getting this error.

Unable to find corner module 2_material / material

I looked at this link: https://github.com/urish/angular2-material-build , but don’t understand how it works. I tried to include the angular2_material folder in node_modules.

I tried looking at http://plnkr.co/edit/vSS7yMroAeTDHALG8eEg?p=preview . I don’t understand how js client application works:

import {ComponentAnnotation as Component, ViewAnnotation as View, bootstrap} from 'angular2/angular2'; import {MdInput, MdInputContainer} from 'angular2_material/material'; @Component({ selector: 'test-app' }) @View({ template:` <h1>AngularJs 2 Material Design Demo</h1> <md-input-container> <label>Your name</label> <input #newname /> </md-input-container> <p> Hello, {{newname.value}} </p> `, directives: [MdInputContainer, MdInput] }) class TestApp { constructor(){ this.title = 'AngularJs 2 Material Design Demo'; } } bootstrap(TestApp) 

Is this typescript code or not?

+1
source share
1 answer

angular2_material is not yet applicable. See Also https://github.com/angular/material2/issues/105

We will soon release an alpha version of up to 1,000 minutes as soon as a few more things are ready. The ad will probably be on Twitter, so stay tuned!

+1
source

Source: https://habr.com/ru/post/1261256/


All Articles