-
Notifications
You must be signed in to change notification settings - Fork 395
feat: Prepare for adding CDK docs #244
Conversation
726621e
to
107507f
Compare
import {SECTIONS} from '../../shared/documentation-items/documentation-items'; | ||
|
||
@Injectable() | ||
export class CanActivateComponentSidenav implements CanActivate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add class description?
constructor(private router: Router) {} | ||
|
||
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { | ||
let sectionFound = Object.keys(SECTIONS).find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment explaining what this is doing? E.g. Prevent navigation to a section if...
|
||
ngOnInit() { | ||
this._componentPageTitle.title = 'Component Categories'; | ||
this.params = Observable.combineLatest( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment here?
'components': 'Components', | ||
}; | ||
const CDK = 'cdk'; | ||
const COMPONENTS = 'components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worthwhile to have these as constants?
1d199fc
to
0ebe8a8
Compare
7ef8532
to
0b6c07a
Compare
@jelbourn This is ready for review once more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#243