From cc07cdda20fdf8eb4ef9c1c34399a51c427c9a5a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 24 Apr 2014 10:47:27 -0700 Subject: [PATCH] docs(modal): fix Markdown markup for augmented methods Without leading and trailing blank lines, the source is not marked up as a list. Closes #2107 --- src/modal/docs/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modal/docs/readme.md b/src/modal/docs/readme.md index 84cafa11b0..42b315b256 100644 --- a/src/modal/docs/readme.md +++ b/src/modal/docs/readme.md @@ -22,6 +22,8 @@ The `open` method returns a modal instance, an object with the following propert * `opened` - a promise that is resolved when a modal gets opened after downloading content's template and resolving all variables In addition the scope associated with modal's content is augmented with 2 methods: + * `$close(result)` * `$dismiss(reason)` + Those methods make it easy to close a modal window without a need to create a dedicated controller