File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Component , inject , OnInit } from '@angular/core' ;
2- import { Router } from '@angular/router' ;
3- import { of } from 'rxjs' ;
4- import { map , switchMap } from 'rxjs/operators' ;
1+ // Demo file for video - shows the full power of Mini TypeScript Hero
2+ // Press Ctrl+Alt+O (or Cmd+Alt+O on macOS) to organize imports
53
6- import { BookList } from './components/book-list' ;
74import { UserDetail } from './components/user-detail' ;
5+ import { Component } from '@angular/core' ;
6+ import { UnusedService } from './services/unused' ;
7+ import { Router } from "@angular/router"
8+ import { map , switchMap } from 'rxjs/operators' ;
9+ import { OnInit , inject } from "@angular/core"
10+ import { BookList } from './components/book-list' ;
11+ import { of } from "rxjs"
812
913@Component ( {
1014 selector : 'app-demo' ,
@@ -36,4 +40,6 @@ export class DemoComponent implements OnInit {
3640 private transform ( value : string ) {
3741 return of ( value ) ;
3842 }
39- }
43+ }
44+
45+ // Note: UnusedService is imported but never used - it will be removed!
You can’t perform that action at this time.
0 commit comments