Logo
Explore Help
Sign In
honeymoose/angular-cn
1
0
Fork 0
You've already forked angular-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-cn/modules/@angular/common/src/pipes/invalid_pipe_argument_exception.ts

9 lines
288 B
TypeScript
Raw Normal View History

refactor(imports): simplify paths
2016-05-31 15:22:59 -07:00
import {Type, stringify} from '../facade/lang';
import {BaseException} from '../facade/exceptions';
feat(pipe): added the Pipe decorator and the pipe property to View BREAKING CHANGE: Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator. @Pipe({ name: 'double' }) class DoublePipe { transform(value, args) { return value * 2; } } @View({ template: '{{ 10 | double}}' pipes: [DoublePipe] }) class CustomComponent {} Closes #3572
2015-08-07 11:41:38 -07:00
export class InvalidPipeArgumentException extends BaseException {
constructor(type: Type, value: Object) {
cleanup(pipes): improve the error message of InvalidPipeArgumentException
2015-12-08 12:06:14 -08:00
super(`Invalid argument '${value}' for pipe '${stringify(type)}'`);
feat(pipe): added the Pipe decorator and the pipe property to View BREAKING CHANGE: Instead of configuring pipes via a Pipes object, now you can configure them by providing the pipes property to the View decorator. @Pipe({ name: 'double' }) class DoublePipe { transform(value, args) { return value * 2; } } @View({ template: '{{ 10 | double}}' pipes: [DoublePipe] }) class CustomComponent {} Closes #3572
2015-08-07 11:41:38 -07:00
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 179ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API