_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
components/src/components-examples/material/datepicker/datepicker-min-max/datepicker-min-max-example.ts_0_963 | import {ChangeDetectionStrategy, Component} from '@angular/core';
import {provideNativeDateAdapter} from '@angular/material/core';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
/... | {
"end_byte": 963,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-min-max/datepicker-min-max-example.ts"
} |
components/src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.css_0_41 | mat-form-field {
margin-right: 12px;
}
| {
"end_byte": 41,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.css"
} |
components/src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.html_0_356 | <mat-form-field>
<mat-label>Different locale</mat-label>
<input matInput [matDatepicker]="dp" />
<mat-hint>{{dateFormatString()}}</mat-hint>
<mat-datepicker-toggle matIconSuffix [for]="dp"></mat-datepicker-toggle>
<mat-datepicker #dp></mat-datepicker>
</mat-form-field>
<button mat-button (click)="french()">Dy... | {
"end_byte": 356,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.html"
} |
components/src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.ts_0_2232 | import {ChangeDetectionStrategy, Component, OnInit, computed, inject, signal} from '@angular/core';
import {provideMomentDateAdapter} from '@angular/material-moment-adapter';
import {MatButtonModule} from '@angular/material/button';
import {DateAdapter, MAT_DATE_LOCALE} from '@angular/material/core';
import {MatDatepic... | {
"end_byte": 2232,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-locale/datepicker-locale-example.ts"
} |
components/src/components-examples/material/datepicker/datepicker-moment/datepicker-moment-example.ts_0_1654 | import {ChangeDetectionStrategy, Component} from '@angular/core';
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {provideMomentDateAdapter} from '@angular/material-moment-adapter';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@... | {
"end_byte": 1654,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-moment/datepicker-moment-example.ts"
} |
components/src/components-examples/material/datepicker/datepicker-moment/datepicker-moment-example.html_0_291 | <mat-form-field>
<mat-label>Moment.js datepicker</mat-label>
<input matInput [matDatepicker]="dp" [formControl]="date">
<mat-hint>MM/DD/YYYY</mat-hint>
<mat-datepicker-toggle matIconSuffix [for]="dp"></mat-datepicker-toggle>
<mat-datepicker #dp></mat-datepicker>
</mat-form-field>
| {
"end_byte": 291,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-moment/datepicker-moment-example.html"
} |
components/src/components-examples/material/datepicker/datepicker-formats/datepicker-formats-example.ts_0_1895 | import {ChangeDetectionStrategy, Component} from '@angular/core';
import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {provideMomentDateAdapter} from '@angular/material-moment-adapter';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@... | {
"end_byte": 1895,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-formats/datepicker-formats-example.ts"
} |
components/src/components-examples/material/datepicker/datepicker-formats/datepicker-formats-example.html_0_292 | <mat-form-field>
<mat-label>Verbose datepicker</mat-label>
<input matInput [matDatepicker]="dp" [formControl]="date">
<mat-hint>MMMM DD, YYYY</mat-hint>
<mat-datepicker-toggle matIconSuffix [for]="dp"></mat-datepicker-toggle>
<mat-datepicker #dp></mat-datepicker>
</mat-form-field>
| {
"end_byte": 292,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-formats/datepicker-formats-example.html"
} |
components/src/components-examples/material/datepicker/datepicker-start-view/datepicker-start-view-example.html_0_314 | <mat-form-field>
<mat-label>Choose a date</mat-label>
<input matInput [matDatepicker]="picker">
<mat-hint>MM/DD/YYYY</mat-hint>
<mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker startView="year" [startAt]="startDate"></mat-datepicker>
</mat-form-field>
| {
"end_byte": 314,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-start-view/datepicker-start-view-example.html"
} |
components/src/components-examples/material/datepicker/datepicker-start-view/datepicker-start-view-example.ts_0_722 | import {ChangeDetectionStrategy, Component} from '@angular/core';
import {provideNativeDateAdapter} from '@angular/material/core';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatInputModule} from '@angular/material/input';
/... | {
"end_byte": 722,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-start-view/datepicker-start-view-example.ts"
} |
components/src/components-examples/material/datepicker/date-range-picker-overview/date-range-picker-overview-example.ts_0_620 | import {ChangeDetectionStrategy, Component} from '@angular/core';
import {provideNativeDateAdapter} from '@angular/material/core';
import {MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@angular/material/form-field';
/** @title Basic date range picker */
@Component({
sele... | {
"end_byte": 620,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/date-range-picker-overview/date-range-picker-overview-example.ts"
} |
components/src/components-examples/material/datepicker/date-range-picker-overview/date-range-picker-overview-example.html_0_435 | <mat-form-field>
<mat-label>Enter a date range</mat-label>
<mat-date-range-input [rangePicker]="picker">
<input matStartDate placeholder="Start date">
<input matEndDate placeholder="End date">
</mat-date-range-input>
<mat-hint>MM/DD/YYYY – MM/DD/YYYY</mat-hint>
<mat-datepicker-toggle matIconSuffix [fo... | {
"end_byte": 435,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/date-range-picker-overview/date-range-picker-overview-example.html"
} |
components/src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.css_0_82 | button.example-custom-date-class {
background: orange;
border-radius: 100%;
}
| {
"end_byte": 82,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.css"
} |
components/src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.html_0_326 | <mat-form-field class="example-full-width">
<mat-label>Choose a date</mat-label>
<input matInput [matDatepicker]="picker">
<mat-hint>MM/DD/YYYY</mat-hint>
<mat-datepicker-toggle matIconSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker [dateClass]="dateClass" #picker></mat-datepicker>
</mat-form-f... | {
"end_byte": 326,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.html"
} |
components/src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.ts_0_1177 | import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';
import {provideNativeDateAdapter} from '@angular/material/core';
import {MatCalendarCellClassFunction, MatDatepickerModule} from '@angular/material/datepicker';
import {MatFormFieldModule} from '@angular/material/form-field';
import {M... | {
"end_byte": 1177,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/datepicker/datepicker-date-class/datepicker-date-class-example.ts"
} |
components/src/components-examples/material/toolbar/BUILD.bazel_0_1127 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "toolbar",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),... | {
"end_byte": 1127,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/BUILD.bazel"
} |
components/src/components-examples/material/toolbar/index.ts_0_402 | export {ToolbarBasicExample} from './toolbar-basic/toolbar-basic-example';
export {ToolbarMultirowExample} from './toolbar-multirow/toolbar-multirow-example';
export {ToolbarSimpleExample} from './toolbar-simple/toolbar-simple-example';
export {ToolbarOverviewExample} from './toolbar-overview/toolbar-overview-example';... | {
"end_byte": 402,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/index.ts"
} |
components/src/components-examples/material/toolbar/toolbar-harness/toolbar-harness-example.spec.ts_0_1576 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatToolbarHarness} from '@angular/material/toolbar/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {ToolbarHarnessExample} from './toolbar-harness-example... | {
"end_byte": 1576,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-harness/toolbar-harness-example.spec.ts"
} |
components/src/components-examples/material/toolbar/toolbar-harness/toolbar-harness-example.html_0_297 | <mat-toolbar><span>My App</span></mat-toolbar>
<mat-toolbar>
<mat-toolbar-row><span>Row 1</span></mat-toolbar-row>
<mat-toolbar-row><span>Row 2</span>
<button mat-button>
Button 1
</button>
<button mat-button>
Button 2
</button>
</mat-toolbar-row>
</mat-toolbar>
| {
"end_byte": 297,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-harness/toolbar-harness-example.html"
} |
components/src/components-examples/material/toolbar/toolbar-harness/toolbar-harness-example.ts_0_397 | import {Component} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatToolbarModule} from '@angular/material/toolbar';
/**
* @title Testing with MatToolbarHarness
*/
@Component({
selector: 'toolbar-harness-example',
templateUrl: 'toolbar-harness-example.html',
imports: [... | {
"end_byte": 397,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-harness/toolbar-harness-example.ts"
} |
components/src/components-examples/material/toolbar/toolbar-basic/toolbar-basic-example.html_0_525 | <mat-toolbar>
<button mat-icon-button class="example-icon" aria-label="Example icon-button with menu icon">
<mat-icon>menu</mat-icon>
</button>
<span>My App</span>
<span class="example-spacer"></span>
<button mat-icon-button class="example-icon favorite-icon" aria-label="Example icon-button with heart ico... | {
"end_byte": 525,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-basic/toolbar-basic-example.html"
} |
components/src/components-examples/material/toolbar/toolbar-basic/toolbar-basic-example.ts_0_484 | import {Component} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatButtonModule} from '@angular/material/button';
import {MatToolbarModule} from '@angular/material/toolbar';
/**
* @title Basic toolbar
*/
@Component({
selector: 'toolbar-basic-example',
templateUrl: 'toolbar-... | {
"end_byte": 484,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-basic/toolbar-basic-example.ts"
} |
components/src/components-examples/material/toolbar/toolbar-basic/toolbar-basic-example.css_0_38 | .example-spacer {
flex: 1 1 auto;
}
| {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-basic/toolbar-basic-example.css"
} |
components/src/components-examples/material/toolbar/toolbar-simple/toolbar-simple-example.ts_0_311 | import {Component} from '@angular/core';
import {MatToolbarModule} from '@angular/material/toolbar';
/**
* @title Toolbar with just text
*/
@Component({
selector: 'toolbar-simple-example',
templateUrl: 'toolbar-simple-example.html',
imports: [MatToolbarModule],
})
export class ToolbarSimpleExample {}
| {
"end_byte": 311,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-simple/toolbar-simple-example.ts"
} |
components/src/components-examples/material/toolbar/toolbar-simple/toolbar-simple-example.html_0_59 | <mat-toolbar>
<span>My Application</span>
</mat-toolbar>
| {
"end_byte": 59,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-simple/toolbar-simple-example.html"
} |
components/src/components-examples/material/toolbar/toolbar-overview/toolbar-overview-example.css_0_38 | .example-spacer {
flex: 1 1 auto;
}
| {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-overview/toolbar-overview-example.css"
} |
components/src/components-examples/material/toolbar/toolbar-overview/toolbar-overview-example.html_0_525 | <mat-toolbar>
<button mat-icon-button class="example-icon" aria-label="Example icon-button with menu icon">
<mat-icon>menu</mat-icon>
</button>
<span>My App</span>
<span class="example-spacer"></span>
<button mat-icon-button class="example-icon favorite-icon" aria-label="Example icon-button with heart ico... | {
"end_byte": 525,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-overview/toolbar-overview-example.html"
} |
components/src/components-examples/material/toolbar/toolbar-overview/toolbar-overview-example.ts_0_499 | import {Component} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatButtonModule} from '@angular/material/button';
import {MatToolbarModule} from '@angular/material/toolbar';
/**
* @title Toolbar overview
*/
@Component({
selector: 'toolbar-overview-example',
templateUrl: 'to... | {
"end_byte": 499,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-overview/toolbar-overview-example.ts"
} |
components/src/components-examples/material/toolbar/toolbar-multirow/toolbar-multirow-example.html_0_818 | <mat-toolbar>
<!-- #docregion toolbar-row -->
<mat-toolbar-row>
<span>Custom Toolbar</span>
</mat-toolbar-row>
<!-- #enddocregion toolbar-row -->
<!-- #docregion toolbar-position-content -->
<mat-toolbar-row>
<span>Second Line</span>
<span class="example-spacer"></span>
<mat-icon class="example-i... | {
"end_byte": 818,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-multirow/toolbar-multirow-example.html"
} |
components/src/components-examples/material/toolbar/toolbar-multirow/toolbar-multirow-example.ts_0_425 | import {Component} from '@angular/core';
import {MatIconModule} from '@angular/material/icon';
import {MatToolbarModule} from '@angular/material/toolbar';
/**
* @title Multi-row toolbar
*/
@Component({
selector: 'toolbar-multirow-example',
templateUrl: 'toolbar-multirow-example.html',
styleUrl: 'toolbar-multir... | {
"end_byte": 425,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-multirow/toolbar-multirow-example.ts"
} |
components/src/components-examples/material/toolbar/toolbar-multirow/toolbar-multirow-example.css_0_174 | .example-icon {
padding: 0 14px;
}
/* #docregion toolbar-position-content-style */
.example-spacer {
flex: 1 1 auto;
}
/* #enddocregion toolbar-position-content-style */
| {
"end_byte": 174,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/toolbar/toolbar-multirow/toolbar-multirow-example.css"
} |
components/src/components-examples/material/checkbox/BUILD.bazel_0_1165 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "checkbox",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
])... | {
"end_byte": 1165,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/BUILD.bazel"
} |
components/src/components-examples/material/checkbox/index.ts_0_374 | export {CheckboxConfigurableExample} from './checkbox-configurable/checkbox-configurable-example';
export {CheckboxHarnessExample} from './checkbox-harness/checkbox-harness-example';
export {CheckboxOverviewExample} from './checkbox-overview/checkbox-overview-example';
export {CheckboxReactiveFormsExample} from './chec... | {
"end_byte": 374,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/index.ts"
} |
components/src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.css_0_174 | .example-h2 {
margin: 10px;
}
.example-section {
display: flex;
align-content: center;
align-items: center;
height: 60px;
}
.example-margin {
margin: 0 10px;
}
| {
"end_byte": 174,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.css"
} |
components/src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.ts_0_840 | import {ChangeDetectionStrategy, Component, model} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {MatCardModule} from '@angular/material/card';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {MatRadioModule} from '@angular/material/radio';
/**
* @title Configurable che... | {
"end_byte": 840,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.ts"
} |
components/src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.html_0_1292 | <mat-card>
<mat-card-content>
<h2 class="example-h2">Checkbox configuration</h2>
<section class="example-section">
<mat-checkbox class="example-margin" [(ngModel)]="checked">Checked</mat-checkbox>
<mat-checkbox class="example-margin" [(ngModel)]="indeterminate">Indeterminate</mat-checkbox>
</... | {
"end_byte": 1292,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-configurable/checkbox-configurable-example.html"
} |
components/src/components-examples/material/checkbox/checkbox-overview/checkbox-overview-example.css_0_130 | .example-section {
margin: 12px 0;
}
.example-margin {
margin: 0 12px;
}
ul {
list-style-type: none;
margin-top: 4px;
}
| {
"end_byte": 130,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-overview/checkbox-overview-example.css"
} |
components/src/components-examples/material/checkbox/checkbox-overview/checkbox-overview-example.ts_0_1478 | import {ChangeDetectionStrategy, Component, computed, signal} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {MatCheckboxModule} from '@angular/material/checkbox';
export interface Task {
name: string;
completed: boolean;
subtasks?: Task[];
}
/**
* @title Basic checkboxes
*/
@Compone... | {
"end_byte": 1478,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-overview/checkbox-overview-example.ts"
} |
components/src/components-examples/material/checkbox/checkbox-overview/checkbox-overview-example.html_0_820 | <section class="example-section">
<mat-checkbox class="example-margin">Check me!</mat-checkbox>
<mat-checkbox class="example-margin" [disabled]="true">Disabled</mat-checkbox>
</section>
<section class="example-section">
<span class="example-list-section">
<mat-checkbox
class="example-margin"
[che... | {
"end_byte": 820,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-overview/checkbox-overview-example.html"
} |
components/src/components-examples/material/checkbox/checkbox-reactive-forms/checkbox-reactive-forms-example.html_0_451 | <section class="example-section" [formGroup]="toppings">
<h4>Select your toppings:</h4>
<p><mat-checkbox formControlName="pepperoni">Pepperoni</mat-checkbox></p>
<p><mat-checkbox formControlName="extracheese">Extra Cheese</mat-checkbox></p>
<p><mat-checkbox formControlName="mushroom">Mushroom</mat-checkbox></p>... | {
"end_byte": 451,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-reactive-forms/checkbox-reactive-forms-example.html"
} |
components/src/components-examples/material/checkbox/checkbox-reactive-forms/checkbox-reactive-forms-example.ts_0_821 | import {JsonPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatCheckboxModule} from '@angular/material/checkbox';
/** @title Checkboxes with reactive forms */
@Component({
sel... | {
"end_byte": 821,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-reactive-forms/checkbox-reactive-forms-example.ts"
} |
components/src/components-examples/material/checkbox/checkbox-reactive-forms/checkbox-reactive-forms-example.css_0_39 | .example-section {
margin: 12px 0;
}
| {
"end_byte": 39,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-reactive-forms/checkbox-reactive-forms-example.css"
} |
components/src/components-examples/material/checkbox/checkbox-harness/checkbox-harness-example.html_0_256 | <mat-checkbox
required
[checked]="true"
name="first-name"
value="first-value"
aria-label="First checkbox"
>
First
</mat-checkbox>
<mat-checkbox indeterminate="true" [disabled]="disabled()" aria-label="Second checkbox">
Second
</mat-checkbox>
| {
"end_byte": 256,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-harness/checkbox-harness-example.html"
} |
components/src/components-examples/material/checkbox/checkbox-harness/checkbox-harness-example.spec.ts_0_2076 | import {HarnessLoader} from '@angular/cdk/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {MatCheckboxHarness} from '@angular/material/checkbox/testing';
import {CheckboxHarnessExample} from './checkbox-harness-exa... | {
"end_byte": 2076,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-harness/checkbox-harness-example.spec.ts"
} |
components/src/components-examples/material/checkbox/checkbox-harness/checkbox-harness-example.ts_0_448 | import {ChangeDetectionStrategy, Component, input} from '@angular/core';
import {MatCheckboxModule} from '@angular/material/checkbox';
/**
* @title Testing with MatCheckboxHarness
*/
@Component({
selector: 'checkbox-harness-example',
templateUrl: 'checkbox-harness-example.html',
imports: [MatCheckboxModule],
... | {
"end_byte": 448,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/checkbox/checkbox-harness/checkbox-harness-example.ts"
} |
components/src/components-examples/material/slider/BUILD.bazel_0_1156 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "slider",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),
... | {
"end_byte": 1156,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/BUILD.bazel"
} |
components/src/components-examples/material/slider/index.ts_0_411 | export {SliderConfigurableExample} from './slider-configurable/slider-configurable-example';
export {SliderFormattingExample} from './slider-formatting/slider-formatting-example';
export {SliderOverviewExample} from './slider-overview/slider-overview-example';
export {SliderHarnessExample} from './slider-harness/slider... | {
"end_byte": 411,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/index.ts"
} |
components/src/components-examples/material/slider/slider-harness/slider-harness-example.html_0_63 | <mat-slider>
<input matSliderThumb value="50">
</mat-slider>
| {
"end_byte": 63,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-harness/slider-harness-example.html"
} |
components/src/components-examples/material/slider/slider-harness/slider-harness-example.ts_0_315 | import {Component} from '@angular/core';
import {MatSliderModule} from '@angular/material/slider';
/**
* @title Testing with MatSliderHarness
*/
@Component({
selector: 'slider-harness-example',
templateUrl: 'slider-harness-example.html',
imports: [MatSliderModule],
})
export class SliderHarnessExample {}
| {
"end_byte": 315,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-harness/slider-harness-example.ts"
} |
components/src/components-examples/material/slider/slider-harness/slider-harness-example.spec.ts_0_1870 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatSliderHarness} from '@angular/material/slider/testing';
import {HarnessLoader} from '@angular/cdk/testing';
import {MatSliderModule} from '@angular/material/slider';
import... | {
"end_byte": 1870,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-harness/slider-harness-example.spec.ts"
} |
components/src/components-examples/material/slider/slider-configurable/slider-configurable-example.ts_0_873 | import {Component} from '@angular/core';
import {MatSliderModule} from '@angular/material/slider';
import {MatCheckboxModule} from '@angular/material/checkbox';
import {FormsModule} from '@angular/forms';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-fi... | {
"end_byte": 873,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-configurable/slider-configurable-example.ts"
} |
components/src/components-examples/material/slider/slider-configurable/slider-configurable-example.html_0_1872 | <mat-card>
<mat-card-content>
<h2 class="example-h2">Slider configuration</h2>
<section class="example-section">
<mat-form-field class="example-margin example-width">
<mat-label>Value</mat-label>
<input matInput type="number" [(ngModel)]="value">
</mat-form-field>
<mat-form-... | {
"end_byte": 1872,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-configurable/slider-configurable-example.html"
} |
components/src/components-examples/material/slider/slider-configurable/slider-configurable-example.css_0_603 | .example-h2 {
margin-left: 10px;
margin-right: 10px;
}
.example-section {
display: flex;
flex-wrap: wrap;
align-content: center;
align-items: center;
}
.example-margin {
margin: 8px;
}
.example-width {
max-width: 180px;
width: 100%;
}
.mat-mdc-slider {
max-width: 300px;
width: 100%;
}
.mat-md... | {
"end_byte": 603,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-configurable/slider-configurable-example.css"
} |
components/src/components-examples/material/slider/slider-range/slider-range-example.ts_0_332 | import {Component} from '@angular/core';
import {MatSliderModule} from '@angular/material/slider';
/**
* @title Range slider
*/
@Component({
selector: 'slider-range-example',
templateUrl: 'slider-range-example.html',
styleUrl: 'slider-range-example.css',
imports: [MatSliderModule],
})
export class SliderRang... | {
"end_byte": 332,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-range/slider-range-example.ts"
} |
components/src/components-examples/material/slider/slider-range/slider-range-example.html_0_129 | <mat-slider min="200" max="500">
<input value="300" matSliderStartThumb>
<input value="400" matSliderEndThumb>
</mat-slider>
| {
"end_byte": 129,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-range/slider-range-example.html"
} |
components/src/components-examples/material/slider/slider-range/slider-range-example.css_0_31 | mat-slider {
width: 300px;
}
| {
"end_byte": 31,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-range/slider-range-example.css"
} |
components/src/components-examples/material/slider/slider-overview/slider-overview-example.html_0_52 | <mat-slider>
<input matSliderThumb>
</mat-slider>
| {
"end_byte": 52,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-overview/slider-overview-example.html"
} |
components/src/components-examples/material/slider/slider-overview/slider-overview-example.css_0_31 | mat-slider {
width: 300px;
}
| {
"end_byte": 31,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-overview/slider-overview-example.css"
} |
components/src/components-examples/material/slider/slider-overview/slider-overview-example.ts_0_344 | import {Component} from '@angular/core';
import {MatSliderModule} from '@angular/material/slider';
/**
* @title Basic slider
*/
@Component({
selector: 'slider-overview-example',
templateUrl: 'slider-overview-example.html',
styleUrl: 'slider-overview-example.css',
imports: [MatSliderModule],
})
export class S... | {
"end_byte": 344,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-overview/slider-overview-example.ts"
} |
components/src/components-examples/material/slider/slider-formatting/slider-formatting-example.html_0_136 | <mat-slider min="0" max="100000" step="1000" showTickMarks discrete [displayWith]="formatLabel">
<input matSliderThumb>
</mat-slider>
| {
"end_byte": 136,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-formatting/slider-formatting-example.html"
} |
components/src/components-examples/material/slider/slider-formatting/slider-formatting-example.css_0_31 | mat-slider {
width: 300px;
}
| {
"end_byte": 31,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-formatting/slider-formatting-example.css"
} |
components/src/components-examples/material/slider/slider-formatting/slider-formatting-example.ts_0_526 | import {Component} from '@angular/core';
import {MatSliderModule} from '@angular/material/slider';
/**
* @title Slider with custom thumb label formatting.
*/
@Component({
selector: 'slider-formatting-example',
templateUrl: 'slider-formatting-example.html',
styleUrl: 'slider-formatting-example.css',
imports: ... | {
"end_byte": 526,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/slider/slider-formatting/slider-formatting-example.ts"
} |
components/src/components-examples/material/stepper/BUILD.bazel_0_1357 | load("//tools:defaults.bzl", "ng_module", "ng_test_library", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "stepper",
srcs = glob(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),... | {
"end_byte": 1357,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/BUILD.bazel"
} |
components/src/components-examples/material/stepper/index.ts_0_1145 | export {StepperEditableExample} from './stepper-editable/stepper-editable-example';
export {StepperErrorsExample} from './stepper-errors/stepper-errors-example';
export {StepperLabelPositionBottomExample} from './stepper-label-position-bottom/stepper-label-position-bottom-example';
export {StepperOptionalExample} from ... | {
"end_byte": 1145,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/index.ts"
} |
components/src/components-examples/material/stepper/stepper-intl/stepper-intl-example.css_0_202 | .demo-stepper {
margin-top: 8px;
}
.demo-form-field {
margin-top: 16px;
}
.demo-radio-group {
display: flex;
flex-direction: column;
margin: 15px 0;
}
.demo-radio-button {
margin: 5px;
}
| {
"end_byte": 202,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-intl/stepper-intl-example.css"
} |
components/src/components-examples/material/stepper/stepper-intl/stepper-intl-example.html_0_1842 | <label for="demo-optional-label-group">Pick the text for the optional label</label>
<mat-radio-group
id="demo-optional-label-group"
class="demo-radio-group"
[(ngModel)]="optionalLabelText"
(ngModelChange)="updateOptionalLabel()">
@for (optionalLabelTextChoice of optionalLabelTextChoices; track optionalLabelTe... | {
"end_byte": 1842,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-intl/stepper-intl-example.html"
} |
components/src/components-examples/material/stepper/stepper-intl/stepper-intl-example.ts_0_1768 | import {Component, Injectable, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatStepperIntl, MatStepperModule} from '@angular/material/stepper';
import {MatButtonModule} from '@angular/material/button';
import {MatInputModule} from '@angu... | {
"end_byte": 1768,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-intl/stepper-intl-example.ts"
} |
components/src/components-examples/material/stepper/stepper-header-position/stepper-header-position-example.html_0_1168 | <mat-stepper headerPosition="bottom" #stepper>
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
<ng-template matStepLabel>Fill out your name</ng-template>
<mat-form-field>
<input matInput placeholder="Last name, First name" formControlName="firstCtrl" required>
... | {
"end_byte": 1168,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-header-position/stepper-header-position-example.html"
} |
components/src/components-examples/material/stepper/stepper-header-position/stepper-header-position-example.ts_0_967 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatButtonModule} from '@angular/material/button';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
im... | {
"end_byte": 967,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-header-position/stepper-header-position-example.ts"
} |
components/src/components-examples/material/stepper/stepper-animations/stepper-animations-example.html_0_1383 | <div class="example-input-wrapper">
<label for="duration">Animation duration:</label>
<input id="duration" value="2000" type="number" min="0" step="100" #duration>
</div>
<mat-vertical-stepper [linear]="false" #stepper [animationDuration]="duration.value">
<mat-step [stepControl]="firstFormGroup">
<form [for... | {
"end_byte": 1383,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-animations/stepper-animations-example.html"
} |
components/src/components-examples/material/stepper/stepper-animations/stepper-animations-example.ts_0_1159 | /**
* @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 {Component, inject} from '@angular/core';
import {FormBuilder, FormGroup, FormsModule, ReactiveFormsModule} f... | {
"end_byte": 1159,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-animations/stepper-animations-example.ts"
} |
components/src/components-examples/material/stepper/stepper-animations/stepper-animations-example.css_0_82 | .example-input-wrapper {
margin-bottom: 16px;
}
label {
margin-right: 4px;
}
| {
"end_byte": 82,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-animations/stepper-animations-example.css"
} |
components/src/components-examples/material/stepper/stepper-harness/stepper-harness-example.spec.ts_0_2148 | import {ComponentFixture, TestBed} from '@angular/core/testing';
import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed';
import {MatStepperHarness, MatStepperNextHarness} from '@angular/material/stepper/testing';
import {HarnessLoader, parallel} from '@angular/cdk/testing';
import {StepperHarnessExample... | {
"end_byte": 2148,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-harness/stepper-harness-example.spec.ts"
} |
components/src/components-examples/material/stepper/stepper-harness/stepper-harness-example.ts_0_322 | import {Component} from '@angular/core';
import {MatStepperModule} from '@angular/material/stepper';
/**
* @title Testing with MatStepperHarness
*/
@Component({
selector: 'stepper-harness-example',
templateUrl: 'stepper-harness-example.html',
imports: [MatStepperModule],
})
export class StepperHarnessExample {... | {
"end_byte": 322,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-harness/stepper-harness-example.ts"
} |
components/src/components-examples/material/stepper/stepper-harness/stepper-harness-example.html_0_454 | <mat-stepper>
<mat-step>
<ng-template matStepLabel>One</ng-template>
<button matStepperNext>Next</button>
</mat-step>
<mat-step optional>
<ng-template matStepLabel>Two</ng-template>
<button matStepperPrevious>Previous</button>
<button matStepperNext>Next</button>
</mat-step>
<mat-step opti... | {
"end_byte": 454,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-harness/stepper-harness-example.html"
} |
components/src/components-examples/material/stepper/stepper-optional/stepper-optional-example.css_0_92 | .mat-stepper-horizontal {
margin-top: 8px;
}
.mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 92,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-optional/stepper-optional-example.css"
} |
components/src/components-examples/material/stepper/stepper-optional/stepper-optional-example.ts_0_994 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatStepperModule} from '@angular/material/stepper';
... | {
"end_byte": 994,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-optional/stepper-optional-example.ts"
} |
components/src/components-examples/material/stepper/stepper-optional/stepper-optional-example.html_0_1492 | <button mat-raised-button (click)="isOptional = !isOptional">
{{!isOptional ? 'Enable optional steps' : 'Disable optional steps'}}
</button>
<mat-stepper linear #stepper>
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
<ng-template matStepLabel>Fill out your name</ng-templat... | {
"end_byte": 1492,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-optional/stepper-optional-example.html"
} |
components/src/components-examples/material/stepper/stepper-states/stepper-states-example.html_0_2130 | <mat-stepper #stepper>
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
<ng-template matStepLabel>Fill out your name</ng-template>
<mat-form-field>
<mat-label>Name</mat-label>
<input matInput placeholder="Last name, First name" formControlName="firstCtrl" r... | {
"end_byte": 2130,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-states/stepper-states-example.html"
} |
components/src/components-examples/material/stepper/stepper-states/stepper-states-example.ts_0_1250 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {STEPPER_GLOBAL_OPTIONS} from '@angular/cdk/stepper';
import {MatIconModule} from '@angular/material/icon';
import {MatButtonModule} from '@angular/material/button';
import {... | {
"end_byte": 1250,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-states/stepper-states-example.ts"
} |
components/src/components-examples/material/stepper/stepper-states/stepper-states-example.css_0_92 | .mat-stepper-horizontal {
margin-top: 8px;
}
.mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 92,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-states/stepper-states-example.css"
} |
components/src/components-examples/material/stepper/stepper-editable/stepper-editable-example.ts_0_1017 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatStepperModule} from '@angular/material/stepper';
... | {
"end_byte": 1017,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-editable/stepper-editable-example.ts"
} |
components/src/components-examples/material/stepper/stepper-editable/stepper-editable-example.html_0_1567 | <button mat-raised-button (click)="isEditable = !isEditable">
{{!isEditable ? 'Enable edit mode' : 'Disable edit mode'}}
</button>
<mat-stepper linear #stepper>
<!-- #docregion editable -->
<mat-step [stepControl]="firstFormGroup" [editable]="isEditable">
<!-- #enddocregion editable -->
<form [formGroup]="firs... | {
"end_byte": 1567,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-editable/stepper-editable-example.html"
} |
components/src/components-examples/material/stepper/stepper-editable/stepper-editable-example.css_0_92 | .mat-stepper-horizontal {
margin-top: 8px;
}
.mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 92,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-editable/stepper-editable-example.css"
} |
components/src/components-examples/material/stepper/stepper-responsive/stepper-responsive-example.css_0_85 | .example-stepper {
margin-top: 8px;
}
.mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 85,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-responsive/stepper-responsive-example.css"
} |
components/src/components-examples/material/stepper/stepper-responsive/stepper-responsive-example.ts_0_1585 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {BreakpointObserver} from '@angular/cdk/layout';
import {StepperOrientation, MatStepperModule} from '@angular/material/stepper';
import {Observable} from 'rxjs';
import {map}... | {
"end_byte": 1585,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-responsive/stepper-responsive-example.ts"
} |
components/src/components-examples/material/stepper/stepper-responsive/stepper-responsive-example.html_0_1872 | @switch (stepperOrientation | async) {
@case ('horizontal') {
<div>Make your screen smaller to see a vertical stepper</div>
}
@case ('vertical') {
<div>Make your screen larger to see a horizontal stepper</div>
}
}
<mat-stepper
class="example-stepper"
[orientation]="(stepperOrientation | async)!">
... | {
"end_byte": 1872,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-responsive/stepper-responsive-example.html"
} |
components/src/components-examples/material/stepper/stepper-overview/stepper-overview-example.css_0_92 | .mat-stepper-horizontal {
margin-top: 8px;
}
.mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 92,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-overview/stepper-overview-example.css"
} |
components/src/components-examples/material/stepper/stepper-overview/stepper-overview-example.ts_0_1004 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatStepperModule} from '@angular/material/stepper';
... | {
"end_byte": 1004,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-overview/stepper-overview-example.ts"
} |
components/src/components-examples/material/stepper/stepper-overview/stepper-overview-example.html_0_1443 | <button mat-raised-button (click)="isLinear = !isLinear" id="toggle-linear">
{{!isLinear ? 'Enable linear mode' : 'Disable linear mode'}}
</button>
<mat-stepper [linear]="isLinear" #stepper>
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
<ng-template matStepLabel>Fill out yo... | {
"end_byte": 1443,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-overview/stepper-overview-example.html"
} |
components/src/components-examples/material/stepper/stepper-label-position-bottom/stepper-label-position-bottom-example.ts_0_1047 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatButtonModule} from '@angular/material/button';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
im... | {
"end_byte": 1047,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-label-position-bottom/stepper-label-position-bottom-example.ts"
} |
components/src/components-examples/material/stepper/stepper-label-position-bottom/stepper-label-position-bottom-example.html_0_1416 | <!-- #docregion label-position -->
<mat-stepper labelPosition="bottom" #stepper>
<!-- #enddocregion label-position -->
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
<ng-template matStepLabel>Fill out your name</ng-template>
<mat-form-field>
<mat-label>Name</mat-... | {
"end_byte": 1416,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-label-position-bottom/stepper-label-position-bottom-example.html"
} |
components/src/components-examples/material/stepper/stepper-label-position-bottom/stepper-label-position-bottom-example.css_0_44 | .mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 44,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-label-position-bottom/stepper-label-position-bottom-example.css"
} |
components/src/components-examples/material/stepper/stepper-vertical/stepper-vertical-example.html_0_1445 | <button mat-raised-button (click)="isLinear = !isLinear" id="toggle-linear">
{{!isLinear ? 'Enable linear mode' : 'Disable linear mode'}}
</button>
<mat-stepper orientation="vertical" [linear]="isLinear" #stepper>
<mat-step [stepControl]="firstFormGroup">
<form [formGroup]="firstFormGroup">
<ng-template m... | {
"end_byte": 1445,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-vertical/stepper-vertical-example.html"
} |
components/src/components-examples/material/stepper/stepper-vertical/stepper-vertical-example.ts_0_1004 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {MatInputModule} from '@angular/material/input';
import {MatFormFieldModule} from '@angular/material/form-field';
import {MatStepperModule} from '@angular/material/stepper';
... | {
"end_byte": 1004,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-vertical/stepper-vertical-example.ts"
} |
components/src/components-examples/material/stepper/stepper-vertical/stepper-vertical-example.css_0_90 | .mat-stepper-vertical {
margin-top: 8px;
}
.mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 90,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-vertical/stepper-vertical-example.css"
} |
components/src/components-examples/material/stepper/stepper-errors/stepper-errors-example.css_0_44 | .mat-mdc-form-field {
margin-top: 16px;
}
| {
"end_byte": 44,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-errors/stepper-errors-example.css"
} |
components/src/components-examples/material/stepper/stepper-errors/stepper-errors-example.html_0_1443 | <mat-stepper #stepper>
<mat-step [stepControl]="firstFormGroup" errorMessage="Name is required.">
<form [formGroup]="firstFormGroup">
<ng-template matStepLabel>Fill out your name</ng-template>
<mat-form-field>
<mat-label>Name</mat-label>
<input matInput placeholder="Last name, First na... | {
"end_byte": 1443,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-errors/stepper-errors-example.html"
} |
components/src/components-examples/material/stepper/stepper-errors/stepper-errors-example.ts_0_1169 | import {Component, inject} from '@angular/core';
import {FormBuilder, Validators, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {STEPPER_GLOBAL_OPTIONS} from '@angular/cdk/stepper';
import {MatButtonModule} from '@angular/material/button';
import {MatInputModule} from '@angular/material/input';
import... | {
"end_byte": 1169,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-errors/stepper-errors-example.ts"
} |
components/src/components-examples/material/stepper/stepper-lazy-content/stepper-lazy-content-example.ts_0_411 | import {Component} from '@angular/core';
import {MatButtonModule} from '@angular/material/button';
import {MatStepperModule} from '@angular/material/stepper';
/**
* @title Stepper lazy content rendering
*/
@Component({
selector: 'stepper-lazy-content-example',
templateUrl: 'stepper-lazy-content-example.html',
... | {
"end_byte": 411,
"start_byte": 0,
"url": "https://github.com/angular/components/blob/main/src/components-examples/material/stepper/stepper-lazy-content/stepper-lazy-content-example.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.