Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/examples
/ ngOnInit
Method
ngOnInit
walk-my-dog/src/app/dog-view.component.ts:57–61 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
55
constructor(private dogsService: DogsService, private route: ActivatedRoute) { }
56
57
ngOnInit(): void {
58
this.dog$ = this.route.paramMap.pipe(map(params => {
59
return
this.dogsService.dogs[Number(params.get(
'index'
))]
60
}))
61
}
62
63
}
Callers
nothing calls this directly
Calls
1
get
Method · 0.80
Tested by
no test coverage detected