Skip to content

Instantly share code, notes, and snippets.

@ismaproco
Last active July 4, 2018 16:38
Show Gist options
  • Save ismaproco/ac9fc5a368fdb8e2a21f07fc8ce17a36 to your computer and use it in GitHub Desktop.
Save ismaproco/ac9fc5a368fdb8e2a21f07fc8ce17a36 to your computer and use it in GitHub Desktop.
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = "app";
selectedValue: string = "";
items = [
{ value: "0", view: "zero" },
{ value: "1", view: "one" },
{ value: "2", view: "Two" }
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment