angular/aio/src/app
Sonu Kapoor 175c79d1d8 test(docs-infra): remove deprecated ReflectiveInjector (#38408)
This commit replaces the old and slow `ReflectiveInjector` that was
deprecated in v5 with the new `Injector`. Note: This change was only
done in the spec files inside the `aio` folder.

While changing this, it was not possible to directly use `Injector.get`
to get the correct typing for the mocked classes. For example:

```typescript
locationService = injector.get<TestLocationService>(LocationService);
```

Fails with:

> Argument of type 'typeof LocationService' is not assignable to parameter
of type 'Type<TestLocationService> | InjectionToken<TestLocationService> |
AbstractType<TestLocationService>'.
  Type 'typeof LocationService' is not assignable to type 'Type<TestLocationService>'.
    Property 'searchResult' is missing in type 'LocationService' but required in type
    'TestLocationService'.

Therefore, it was necessary to first convert to `unknown` and then to
`TestLocationService`.

```typescript
locationService = injector.get(LocationService) as unknown as TestLocationService;
```

PR Close #38408
2020-08-13 12:56:13 -07:00
..
custom-elements test(docs-infra): remove deprecated ReflectiveInjector (#38408) 2020-08-13 12:56:13 -07:00
documents refactor(docs-infra): fix some linting warnings (#32980) 2019-10-10 13:56:14 -07:00
layout build(docs-infra): update @angular/cli to 10.0.1 (#37898) 2020-07-08 16:02:46 -07:00
navigation refactor(docs-infra): fix some linting warnings (#32980) 2019-10-10 13:56:14 -07:00
search test(docs-infra): remove deprecated ReflectiveInjector (#38408) 2020-08-13 12:56:13 -07:00
shared test(docs-infra): remove deprecated ReflectiveInjector (#38408) 2020-08-13 12:56:13 -07:00
sw-updates test(docs-infra): remove deprecated ReflectiveInjector (#38408) 2020-08-13 12:56:13 -07:00
app.component.html refactor(docs-infra): decouple showing the top-menu in top-bar from showing the sidenav (#37938) 2020-07-06 13:57:37 -07:00
app.component.spec.ts refactor(docs-infra): decouple showing the top-menu in top-bar from showing the sidenav (#37938) 2020-07-06 13:57:37 -07:00
app.component.ts fix(docs-infra): prevent search-bar from overlapping nav-items (#37938) 2020-07-06 13:57:37 -07:00
app.module.ts fix(docs-infra): ensure material icons are cached for offline access (#27250) 2018-12-05 13:26:27 -08:00