scrimba
Build Your First Angular app
App Module - Angular Components & Modules
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

App Module - Angular Components & Modules
AboutCommentsNotes
App Module - Angular Components & Modules
Expand for more info
src
app
app.component.ts
run
preview
console
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-root',
template: `
<h1>{{ title }}</h1>
`
})
export class AppComponent implements OnInit {
title: string;
constructor() { }

ngOnInit() {
// We call a service that gets us the data
this.title = 'Hello World';
}

}
Console
"Angular is running in the development mode. Call enableProdMode() to enable the production mode."
,
customers
-4:49