88} from "@angular/core" ;
99
1010import { BannerService } from "./banner.service" ;
11+ import { NotificationContent } from "./banner-content.interface" ;
1112
1213/**
1314 * Banner messages are displayed toward the top of the UI and do not interrupt user’s work.
@@ -20,15 +21,15 @@ import { BannerService } from "./banner.service";
2021 template : `
2122 <div
2223 #banner
23- class="bx--inline-notification bx--inline-notification--{{bannerObj[' type'] }}"
24+ class="bx--inline-notification bx--inline-notification--{{bannerObj. type}}"
2425 role="alert">
2526 <div class="bx--inline-notification__details">
2627 <svg class="bx--inline-notification__icon" width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
2728 <path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM3.293 4.707l8 8 1.414-1.414-8-8-1.414 1.414z" fill-rule="evenodd"/>
2829 </svg>
2930 <div class="bx--inline-notification__text-wrapper">
30- <p [innerHTML]="bannerObj[' title'] " class="bx--inline-notification__title"></p>
31- <p [innerHTML]="bannerObj[' message'] " class="bx--inline-notification__subtitle"></p>
31+ <p [innerHTML]="bannerObj. title" class="bx--inline-notification__title"></p>
32+ <p [innerHTML]="bannerObj. message" class="bx--inline-notification__subtitle"></p>
3233 </div>
3334 </div>
3435 <button
@@ -51,16 +52,14 @@ import { BannerService } from "./banner.service";
5152} )
5253export class Banner {
5354 /**
54- * Can have `type` and `message` members.
55+ * Can have `type`, `title`, and `message` members.
5556 *
5657 * `type` can be one of `"info"`, `"warning"`, `"danger"`, `"success"`
5758 *
5859 * `message` is message for banner to display
5960 *
60- * @type {Object }
61- * @memberof Banner
6261 */
63- @Input ( ) bannerObj : Object ;
62+ @Input ( ) bannerObj : NotificationContent ;
6463
6564 /**
6665 * Emits on close.
0 commit comments