8 Commits

Author SHA1 Message Date
geromegrignon
8e05a5e8a6 fix(@schematics/angular): canLoad guard signature
add UrlTree to canLoad guard signature to match the documentation and the other implementations

Closes: #18751
2020-09-11 14:31:24 -04:00
Hari G
5cb5702b39 refactor(@schematics/angular): rename guard param of generated file
Closes #18601
2020-08-26 09:23:10 -04:00
cexbrayat
2fc3fabdde fix(@schematics/angular): add CanDeactivate guard
This generates a generic `CanDeactivate<unknown>` guard.

Fixes #15668
2019-11-14 11:16:36 -08:00
cexbrayat
f3259df1c6 fix(@schematics/angular): uniformize guard spec with service spec
The current guard spec schematic uses `inject` whereas we dropped it for the service spec a while ago.
This commits updates the guard spec schematic to be similar to the current service spec.
2019-11-14 11:15:56 -08:00
Alan Agius
36eba0c9fc refactor: use .template suffix for all schematic files
Currently when using `ivy-ngcc` it will print out a warning

```
Failed to read entry point info from //node_modules/@schematics/angular/workspace/files/package.json with error SyntaxError: Unexpected token < in JSON at position 1121.
```

Fixes #13378
2019-01-16 10:29:56 -08:00
Unknown
8863bc002a feat(@schematics/angular): Added multiselect guard implements option
Adds support for the guard schematic to use multiselect for which interfaces the guard should implement.

Fixes #13400
2019-01-15 10:16:25 -08:00
SIDENIS\Andrey.Chalkin
bf93f5236d feat(@schematics/angular): add UrlTree to CanActivate method signature 2019-01-11 14:07:43 -08:00
Hans Larsen
44086c60ff build: move devkit repo back to angular-cli 2018-06-05 18:50:06 -07:00