Created
March 23, 2018 09:28
-
-
Save debugmodedotnet/427aa1e3a9c9d02fd7fd8ae9a0e7a699 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, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
template: `{{productName | uppercase}} = {{productPrice | currency:'CAD':'symbol-narrow':'4.2-2'}}` | |
}) | |
export class AppComponent { | |
productName = 'Cricket Bat'; | |
productPrice = 990; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment