/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components-examples/material/list/list-sections/list-sections-example.ts
46 строк
1 KB
Kristiyan Kostadinov
docs: remove standalone flag from examples
17 окт 2024, 17:40
17 окт 2024, 17:40
36f4cca
Код
Авторство
О чём код?
import {Component} from '@angular/core'; import {MatDividerModule} from '@angular/material/divider'; import {MatIconModule} from '@angular/material/icon'; import {DatePipe} from '@angular/common'; import {MatListModule} from '@angular/material/list'; export interface Section { name: string; updated: Date; } /** * @title List with sections */ @Component({ selector: 'list-sections-example', styleUrl: 'list-sections-example.css', templateUrl: 'list-sections-example.html', imports: [MatListModule, MatIconModule, MatDividerModule, DatePipe], }) export class ListSectionsExample { folders: Section[] = [ { name: 'Photos', updated: new Date('1/1/16'), }, { name: 'Recipes', updated: new Date('1/17/16'), }, { name: 'Work', updated: new Date('1/28/16'), }, ]; notes: Section[] = [ { name: 'Vacation Itinerary', updated: new Date('2/20/16'), }, { name: 'Kitchen Remodel', updated: new Date('1/18/16'), }, ]; }