349935a434
In an Angular CLI project scenario where projects only reference top-level source-files through the `tsconfig` `files` option, we currently do not migrate referenced source-files. This can be fixed checking all referenced source-files which aren't coming from an external library. This is similar to how `tslint` determines project source-files. PR Close #30269 |
||
---|---|---|
.. | ||
angular | ||
google3 | ||
BUILD.bazel | ||
README.md | ||
index.ts | ||
util.ts |
README.md
Injectable annotation on pipes
In ViewEngine it was possible to inject a class that was annotated as a Pipe
, however this no
longer works in Ivy if the class also doesn't have the Injectable
decorator. This migration
adds Injectable
automatically to all Pipe
classes.
Before
import { Pipe } from '@angular/core';
@Pipe({ name: 'myPipe' })
class MyPipe {}
After
import { Pipe, Injectable } from '@angular/core';
@Injectable()
@Pipe({ name: 'myPipe' })
class MyPipe {}