Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
feat(welcome): add sample local value converter
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 23, 2015
1 parent ab85bc8 commit 9a2c2aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/welcome.html
Expand Up @@ -13,7 +13,7 @@ <h2>${heading}</h2>
</div>
<div class="form-group">
<label>Full Name</label>
<p class="help-block">${fullName}</p>
<p class="help-block">${fullName | upper}</p>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
Expand Down
6 changes: 6 additions & 0 deletions src/welcome.js
Expand Up @@ -12,4 +12,10 @@ export class Welcome{
welcome(){
alert(`Welcome, ${this.fullName}!`);
}
}

export class UpperValueConverter {
toView(value){
return value && value.toUpperCase();
}
}

0 comments on commit 9a2c2aa

Please sign in to comment.