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?
source share