Skip to content

Instantly share code, notes, and snippets.

@nipunaupeksha
Created May 28, 2020 02:52
Show Gist options
  • Save nipunaupeksha/73b5ea780867fe77d167371c6a714a3f to your computer and use it in GitHub Desktop.
Save nipunaupeksha/73b5ea780867fe77d167371c6a714a3f to your computer and use it in GitHub Desktop.
engtosin
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