O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing bound and unbound expressions

We just learned that an expression is resolved by referencing the specified variable from the binding context. Ember.js goes further and makes these expressions reactive. This means that if the underlying variable changes, the replaced expression portion will also be updated. Sometimes, we might not want to suppress this behavior, especially when the variable is too large and constitutes unbound expressions.

These expressions only resolve once on render, and no further changes of the corresponding variable are subscribed. These expressions are written using three braces instead of two, as shown in the following example, where the main content of an Ember.js-powered blog post can be rendered:

{{{post}}}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required