From 43b7c34de00306dee3e693367a4c3cd6b5973c4d Mon Sep 17 00:00:00 2001 From: tinayuangao Date: Tue, 29 Aug 2017 18:56:28 -0700 Subject: [PATCH] demo(chips): Add snackbar notification for adding/removing chips (#6706) --- src/demo-app/a11y/chips/chips-a11y.html | 3 ++- src/demo-app/a11y/chips/chips-a11y.ts | 23 +++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/demo-app/a11y/chips/chips-a11y.html b/src/demo-app/a11y/chips/chips-a11y.html index 7b9527656c0..466003f84ae 100644 --- a/src/demo-app/a11y/chips/chips-a11y.html +++ b/src/demo-app/a11y/chips/chips-a11y.html @@ -23,8 +23,9 @@ - + {{person.name}} + cancel = 0) { this.people.splice(index, 1); + this.snackBar.open(`${person.name} deleted`, '', {duration: 2000}); } } @@ -61,10 +74,4 @@ export class ChipsAccessibilityDemo { } - availableColors = [ - { name: 'none', color: '' }, - { name: 'Primary', color: 'primary' }, - { name: 'Accent', color: 'accent' }, - { name: 'Warn', color: 'warn' } - ]; }