From b8b3fa82995e16ff2fe199f9212d03ca7783a07c Mon Sep 17 00:00:00 2001 From: nick bouldien Date: Tue, 10 Aug 2021 13:10:07 -0600 Subject: [PATCH] update README.md formatting a few markdown tags were a bit off --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 66c9e2e..5baa1a5 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ By passing the time-out configuration as an object instead of a number, you can If a type is not defined and specified, a timeout will not be applied, making the toast "sticky". * Per toast constructed via toaster.pop('success', "title", "text"): -```html +```js toaster.pop({ type: 'error', title: 'Title text', @@ -149,7 +149,7 @@ By passing the close-button configuration as an object instead of a boolean, you If a type is not defined and specified, the default behavior for that type is false. * Per toast constructed via toaster.pop('success', "title", "text"): -```html +```js toaster.pop({ type: 'error', title: 'Title text', @@ -220,10 +220,11 @@ There are five types of body renderings: 'html', 'trustedHtml', 'template', 'tem }; }]) ``` + - Will use the `toast.directiveData` argument to accept data that will be bound to the directive's scope. The directive cannot use isolateScope and will throw an exception if isolateScope is detected. All data must be passed via the directiveData argument. - ```js + ```js // The toast pop call, passing in a directive name to be rendered toaster.pop({ type: 'info', @@ -231,16 +232,16 @@ There are five types of body renderings: 'html', 'trustedHtml', 'template', 'tem bodyOutputType: 'directive', directiveData: { name: 'Bob' } }); - ``` + ``` - ```js + ```js // The directive that will be dynamically rendered .directive('bindName', [function () { return { template: "Hi {{directiveData.name}}!" }; }]) - ``` + ``` There are additional documented use cases in these [tests](test/directiveTemplateSpec.js).