ng2-cmp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ng2-cmp

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mgechev