Created
February 8, 2019 14:15
-
-
Save jacob-jonkman/1d632b51b8ab478a1dcdd964fda46c7d to your computer and use it in GitHub Desktop.
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 } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: 'app.component.html', | |
styleUrls: ['./app.component.css'] | |
}) | |
export class AppComponent { | |
public colors = ['blue', 'red', 'yellow']; | |
public language = 'eng'; | |
public switchLanguage(language) { | |
this.language = language; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment