From 2c5a59f42937d5187510434b85c69a8f460240f0 Mon Sep 17 00:00:00 2001 From: Kelly Selden Date: Tue, 29 Aug 2017 15:47:24 -0700 Subject: [PATCH] make note about positional params --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 61efb7e1..7589fa01 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,17 @@ as data attributes on the `
` wrapping the component template:
``` +You can also use boolean attributes, but make sure it is the first parameter +as this makes use of Ember's positional params system. + +```handlebars +{{! valid }} +{{comments-list data-test-comments post=post}} + +{{! compiler error }} +{{comments-list post=post data-test-comments}} +``` + ### Usage in Computed Properties Instead of assigning `data-test-comment-id` in this example template: