Last active
August 3, 2019 06:20
-
-
Save songthamtung/008ecd0897a2d82b93b4b52258d14ba2 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 { | |
author = getAuthor(); | |
title = `my-app by ${this.author}`; | |
} | |
function getAuthor() { | |
const obj = { name: 'songthamtung' }; | |
return obj; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment