Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created March 23, 2018 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debugmodedotnet/427aa1e3a9c9d02fd7fd8ae9a0e7a699 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/427aa1e3a9c9d02fd7fd8ae9a0e7a699 to your computer and use it in GitHub Desktop.
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