Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Tweak has-block documentation. #2136

Merged
merged 1 commit into from
Nov 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/components/block-params.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ The names are bound in the order that they are passed to `yield` in the componen
### Supporting both block and non-block component usage in one template

It is possible to support both block and non-block usage of a component from a single component template
using the `hasBlock` property.
using the `has-block` helper.

```app/templates/components/blog-post.hbs
{{#if hasBlock}}
{{#if (has-block)}}
{{yield post.title post.body post.author}}
{{else}}
<h1>{{post.title}}</h1>
Expand Down