Angular material docs updated,

+ @angular/material-moment-adapter added to package.json
This commit is contained in:
mustafahlvc
2017-11-17 18:35:43 +03:00
parent 142fc982ca
commit 76358f996e
112 changed files with 1697 additions and 1041 deletions

View File

@@ -0,0 +1 @@
/** No CSS for this example */

View File

@@ -0,0 +1,5 @@
<mat-form-field>
<mat-select placeholder="Toppings" [formControl]="toppings" multiple>
<mat-option *ngFor="let topping of toppingList" [value]="topping">{{topping}}</mat-option>
</mat-select>
</mat-form-field>

View File

@@ -0,0 +1,15 @@
import { Component } from '@angular/core';
import { FormControl } from '@angular/forms';
/** @title Select with multiple selection */
@Component({
selector : 'select-multiple-example',
templateUrl: 'select-multiple-example.html',
styleUrls : ['select-multiple-example.css']
})
export class SelectMultipleExample
{
toppings = new FormControl();
toppingList = ['Extra cheese', 'Mushroom', 'Onion', 'Pepperoni', 'Sausage', 'Tomato'];
}