Created
November 25, 2018 08:46
-
-
Save NishuGoel/94c11bfc45526ef6837cff32c61e3351 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
@Component({ | |
selector: 'app-root', | |
template: `<h2>Welcome</h2> | |
<p [ngStyle]= "{'font-style': style, 'font-size': size}">My Text</p> | |
` | |
}) | |
export class Component{ | |
//public show = true; | |
public style = 'italic'; | |
public size = '30px'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment