EmberJS - Conditionals



The Ember.js defines the two conditional statements, which helps to control the flow of program. It begins with the #(Hash) before the helper name and ends with the closing expression, i.e., {{/}} double curly brace.

The following table shows conditional statments of Ember.js −

S.No. Condition Statment & Description
1 #if

It is used to display a block of the template.

2 #unless

It executes only falsy block of statements.

emberjs_template.htm
Advertisements