From 36a7705a44d3054e004f5b98c8b220408ec77bfe Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Sun, 22 Jul 2018 07:28:54 +0100 Subject: [PATCH] feat(docs-infra): allow notification bar to show arbitrary content (#25020) This change generalises the notification bar rendering to allow more complex content to be displayed. Now you must provide the full HTML of the notification message when using ``. Also you can control whether clicking the content triggers the notification to close or not. This will support the new notification specified in "Other Items : 3" of [#24140](https://github.com/angular/angular/issues/24140#issuecomment-397480410) PR Close #25020 --- aio/src/app/app.component.html | 11 +-- .../notification/notification.component.html | 8 +-- .../notification.component.spec.ts | 70 +++++++++++-------- .../notification/notification.component.ts | 11 +-- aio/src/styles/2-modules/_notification.scss | 7 +- 5 files changed, 63 insertions(+), 44 deletions(-) diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index 11ffff1887..b03d3c44cd 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -7,14 +7,15 @@ - Version 6 of Angular Now Available! + + + Version 6 of Angular Now Available! + Learn More + diff --git a/aio/src/app/layout/notification/notification.component.html b/aio/src/app/layout/notification/notification.component.html index 5db9b72caf..58d7b6bc46 100644 --- a/aio/src/app/layout/notification/notification.component.html +++ b/aio/src/app/layout/notification/notification.component.html @@ -1,8 +1,6 @@ - - - - {{buttonText}} - + + +