All common directives, forms, and pipes have been moved out of angular2/core,
but we kept reexporting them to make transition easier.
This commit removes the reexports.
BREAKING CHANGE
Before
import {NgIf} from 'angular2/core';
After
import {NgIf} from 'angular2/common';
Closes #5362
16 lines
526 B
TypeScript
16 lines
526 B
TypeScript
import {isBlank, isPresent, Json, CONST} from 'angular2/src/facade/lang';
|
|
import {Injectable, PipeTransform, WrappedValue, Pipe} from 'angular2/core';
|
|
|
|
/**
|
|
* Transforms any input value using `JSON.stringify`. Useful for debugging.
|
|
*
|
|
* ### Example
|
|
* {@example core/pipes/ts/json_pipe/json_pipe_example.ts region='JsonPipe'}
|
|
*/
|
|
@CONST()
|
|
@Pipe({name: 'json', pure: false})
|
|
@Injectable()
|
|
export class JsonPipe implements PipeTransform {
|
|
transform(value: any, args: any[] = null): string { return Json.stringify(value); }
|
|
}
|