Getting Started with Angular

Angular 2 Basics

We can pass data from our class to our template very easily since they are bound to each other. By defining a property on our class, we are able to access it from our template:

import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  template: `

    {{ message }}

  `,
})
export class AppComponent {

    message = 'Hello there!';

}