Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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