Angular 2 is the latest framework for building web applications using typescript. Recently, angular team is skipped the version 3.x because, router package is shipped with 3.x previously, so instead of putting into 3.x, choose to move to 4.x.

Showing posts with label display data in angular2. Show all posts
Showing posts with label display data in angular2. Show all posts

Thursday, 8 December 2016

Data Display in Angular 2


With the interpolation, you can display a component property in the template.

import { Component } from '@angular/core';
@Component({
  selector: 'displayapp',
  template: `
    <p>My name is : {{name}}</p>  `
})
export class MyComponent {
  name = 'Alex';
}





Labels

Online Training

Your Name :
Your Email: (required)
Your Message: (required)

Powered by Blogger.

Recent Posts

Find Us On Facebook

Popular Posts