Last active
April 17, 2019 09:15
-
-
Save alemohamad/6dae25b551f34f0d18522c7422ef899f to your computer and use it in GitHub Desktop.
Angular 7 component with data binding.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>{{ title }}</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
font-family: Helvetica, Arial, sans-serif; | |
font-size: 24px; | |
text-transform: uppercase; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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