-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Expand file tree
/
Copy pathguide-items.ts
More file actions
86 lines (81 loc) · 2.73 KB
/
Copy pathguide-items.ts
File metadata and controls
86 lines (81 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {Service} from '@angular/core';
import {ComponentType} from '@angular/cdk/portal';
export interface GuideItem {
id: string;
name: string;
overview: string;
document: string | ComponentType<any>;
}
const GUIDES: GuideItem[] = [
{
id: 'getting-started',
name: 'Getting started',
document: '/docs-content/guides/getting-started.md.html',
overview: 'Add Angular Material to your project!',
},
{
id: 'theming',
name: 'Theming Angular Material',
document: '/docs-content/guides/theming.md.html',
overview: "Customize your application with Angular Material's theming system.",
},
{
id: 'theming-your-components',
name: 'Theming your components',
document: '/docs-content/guides/theming-your-components.md.html',
overview: 'Applying Angular Material theming to your own components',
},
{
id: 'schematics',
name: 'Schematics',
document: '/docs-content/guides/schematics.md.html',
overview: 'Use schematics to quickly generate views with Material Design components.',
},
{
id: 'creating-a-custom-form-field-control',
name: 'Custom form field control',
document: '/docs-content/guides/creating-a-custom-form-field-control.md.html',
overview: 'Build a custom control that integrates with `<mat-form-field>`.',
},
{
id: 'wrapping-existing-form-field-controls',
name: 'Wrapping existing form field controls',
document: '/docs-content/guides/wrapping-existing-form-field-controls.md.html',
overview:
'Wrap Material inputs and selects in reusable components that work with Angular forms.',
},
{
id: 'creating-a-custom-stepper-using-the-cdk-stepper',
name: 'Custom stepper using the CdkStepper',
document: '/docs-content/guides/creating-a-custom-stepper-using-the-cdk-stepper.md.html',
overview: 'Create a custom stepper component using Angular CDK.',
},
{
id: 'using-component-harnesses',
name: 'Testing with component harnesses',
document: '/docs-content/guides/using-component-harnesses.md.html',
overview: 'Write tests with component harnesses for convenience and meaningful results.',
},
{
id: 'material-2-theming',
name: 'Theming Angular Material with Material 2',
document: '/docs-content/guides/material-2.md.html',
overview: "Customize your application with Angular Material's theming system.",
},
];
@Service()
export class GuideItems {
getAllItems(): GuideItem[] {
return GUIDES;
}
getItemById(id: string): GuideItem | undefined {
return GUIDES.find(i => i.id === id);
}
}