mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-12-22 00:27:15 +00:00
@angular/material v2.0.0-beta.12 compability update,
Lots of breaking changes, all "md" prefixes changed with "mat" due to angular material deprecation of "md", md2 package removed, its not compatible with latest material version, will be replaced with another date picker later.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<md-selection-list #shoes>
|
||||
<md-list-option *ngFor="let shoe of typesOfShoes">
|
||||
{{shoe}}
|
||||
</md-list-option>
|
||||
</md-selection-list>
|
||||
<mat-selection-list #shoes>
|
||||
<mat-list-option *ngFor="let shoe of typesOfShoes">
|
||||
{{shoe}}
|
||||
</mat-list-option>
|
||||
</mat-selection-list>
|
||||
|
||||
<p>
|
||||
Options selected: {{shoes.selectedOptions.selected.length}}
|
||||
Options selected: {{shoes.selectedOptions.selected.length}}
|
||||
</p>
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
import {Component} from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
/**
|
||||
* @title List with selection
|
||||
*/
|
||||
@Component({
|
||||
selector: 'list-selection-example',
|
||||
styleUrls: ['list-selection-example.css'],
|
||||
templateUrl: 'list-selection-example.html',
|
||||
selector : 'list-selection-example',
|
||||
styleUrls : ['list-selection-example.css'],
|
||||
templateUrl: 'list-selection-example.html'
|
||||
})
|
||||
export class ListSelectionExample {
|
||||
typesOfShoes = ['Boots', 'Clogs', 'Loafers', 'Moccasins', 'Sneakers'];
|
||||
export class ListSelectionExample
|
||||
{
|
||||
typesOfShoes = ['Boots', 'Clogs', 'Loafers', 'Moccasins', 'Sneakers'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user