Created
October 15, 2016 10:12
-
-
Save wKoza/64476d98c19137d9a7b4e2e042c91380 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<div align="{{alignement}}" >Personne : {{person}} | Age : {{age}} | Adresse : {{address.street}}</div> | |
` | |
}) | |
export class AppComponent { | |
person:string= 'John Doe'; | |
age:number= 30; | |
address:any= {street:'rue du Paradis', city:'75010 Paris'}; | |
alignement:string = 'right'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment