×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 14, 2017 7:24 AM
Views: 3
Tags: no tags
  1. import { Component } from '@angular/core';
  2.  
  3. @Component({
  4.         selector: 'my-tuts',
  5.         template:`<h2>{{title}}</h2>
  6.                                 <input type="text" [(ngModel)]="fname">
  7.                                 <input type="text" [(ngModel)]="lname">
  8.                                 Full Name = {{fname}} {{lname}}`,
  9.                
  10. })
  11. export class TutsComponent{
  12.         public title="mytitle";
  13.        
  14.         public fname;
  15.         public lname;
  16. }