app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
name: String = "Jenny";
age: Number = 30;
jobTitle: String = "Software developer";
hoby: String = "Gardening";
}
app.component.html
<h2>
Hello, I am {{name}}!
I am a {{jobTitle}}.
My hobby is {{hoby}} and
I am {{age}} years old.
</h2>
- angular - How to create function
- angular - Interpolation expression
- angular - Interpolation string concatenation
- angular - Interpolation JavaScript property
- angular - Text input on change listener
- angular - How to get text input value
- angular - How to create a counter
- angular - Generate random number in range
- angular - Generate random whole number
- angular - How to submit form data
- angular bootstrap - Dismissible alert
- angular bootstrap - Danger warning success alert
- angular bootstrap - Alert closed event
- angular bootstrap - Readonly & editable Rating
- angular bootstrap - How to show Toast message