This file contains hidden or 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 { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ name: 'iban' }) | |
export class Iban implements PipeTransform { | |
transform(value: string): string { | |
// remove existing spaces | |
let lIban: string = value.replace(" ", ""); | |
// place a space after every 4th character | |
lIban = lIban.replace(/(.{4})/g, "$1 "); | |
console.log(lIban); |
This file contains hidden or 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
<StackLayout> | |
<Label [text]="appVersion"></Label> | |
</StackLayout> | |
This file contains hidden or 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 dataFormModule = require("nativescript-telerik-ui-pro/dataform"); | |
import viewModel = require("./person-model"); | |
export function onPageLoaded(args) { | |
var page = args.object; | |
page.bindingContext = new viewModel.PersonViewModel(); | |
} | |