p.location-badge. exported from angular2/change_detection defined in angular2/src/change_detection/pipe_transform.ts (line 16) :markdown An interface that stateful pipes should implement. #Example ``` class StatefulPipe implements PipeTransform, PipeOnDestroy { connection; onDestroy() { this.connection.release(); } transform(value, args = []) { this.connection = createConnection(); // ... return someValue; } } ``` .l-main-section h2 Members .l-sub-section h3 onDestroy pre.prettyprint code. onDestroy() :markdown