Created
May 28, 2020 02:52
-
-
Save nipunaupeksha/73b5ea780867fe77d167371c6a714a3f to your computer and use it in GitHub Desktop.
engtosin
This file contains hidden or 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 { FONTS } from './../shared/fontswithcomments'; | |
import { Component, OnInit } from '@angular/core'; | |
import {Fonts} from '../shared/Fonts'; | |
@Component({ | |
selector: 'app-menu', | |
templateUrl: './menu.component.html', | |
styleUrls: ['./menu.component.scss'] | |
}) | |
export class MenuComponent implements OnInit { | |
fonts: Fonts[] = FONTS; | |
selectedFont: Fonts; | |
constructor() { } | |
ngOnInit(): void { | |
} | |
onSelect(font: Fonts){ | |
this.selectedFont = font; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment