×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: waldi1966
Added: Feb 16, 2017 10:13 AM
Modified: Feb 16, 2017 10:56 AM
Views: 13
angular 2 component
  1. import { Component, OnInit } from '@angular/core';
  2.  
  3. @Component({
  4.     moduleId: module.id,
  5.     selector: '${selector}',
  6.     templateUrl: '${name}.component.html'
  7.  })
  8.  export class ${ComponentName}Component implements OnInit {
  9.     constructor() { }
  10.  
  11.     ngOnInit() { }
  12.  
  13. }