1.0.0 • Published 8 years ago

ng2-cmp v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

ng2-cmp

Exports a @Component decorator that allows you to consume templates and styles by using their relative URLs:

import {Component} from 'ng2-cmp';

@Component({
  templateUrl: 'foo.html',
  styleUrls: ['bar.css']
})
class Baz {}

The snippet above is equivalent to:

import {Component} from 'ng2-cmp';

@Component({
  moduleId: typeof __moduleName === 'undefined' ? module.id : __moduleName,
  templateUrl: 'foo.html',
  styleUrls: ['bar.css']
})
class Baz {}

License

MIT