angularjs2 七
2016-09-08 17:12
169 查看
import {Component} from 'angular2/core'; /** DatePipe 日期格式 UpperCasePipe 全部大写格式 LowerCasePipe 全部小写格式 CurrencyPipe 货币格式 PercentPipe 百分比格式 */ @Component({ selector: 'appTest', /*template: `<p>The hero's birthday is {{ birthday | date }}</p>`*/ template: `<p>The hero's birthday is {{ birthday | date:"MM/dd/yy" }}</p>` }) export class App { birthday = new Date(1988,3,15); // April 15, 1988 }
相关文章推荐
- angularjs2 六
- AngularJs $scope作用域 深入探究
- Angularjs 实现一个幻灯片示例代码
- angular学习之四实例:点击收缩展开下拉
- AngularJS(三)
- AngularJS 实现JavaScript 动画效果详解
- How do we maintain a user session using AngularJS, without using cookiestore?
- AngularJS ngRoute and PHP $_SESSION variables
- 如何在 ASP.NET MVC 中集成 AngularJS(3)
- 如何在 ASP.NET MVC 中集成 AngularJS(3)
- AngularJS Directive的使用
- AngularJS 从DOM中获取scope
- angularjs2 五
- angularjs2 四
- angularjs2 三
- angularJS自定义指令各配置项详解
- 深入理解AngularJS中的ng-bind-html指令和$sce服务
- Angularjs实现mvvm式的选项卡示例代码
- 利用AngularJs实现京东首页轮播图效果
- Angular2案例rebirth开源