Skip to content

Instantly share code, notes, and snippets.

@alemohamad
Last active April 17, 2019 09:15
Show Gist options
  • Save alemohamad/6dae25b551f34f0d18522c7422ef899f to your computer and use it in GitHub Desktop.
Save alemohamad/6dae25b551f34f0d18522c7422ef899f to your computer and use it in GitHub Desktop.
Angular 7 component with data binding.
<h1>{{ title }}</h1>
h1 {
font-family: Helvetica, Arial, sans-serif;
font-size: 24px;
text-transform: uppercase;
}
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-contact',
templateUrl: './contact.component.html',
styleUrls: ['./contact.component.scss']
})
export class ContactComponent implements OnInit {
title = 'Contact section';
constructor() { }
ngOnInit() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment