This addon provides the following syntax:
It will display the first block if componentName
can be resolved to
a componnt in the app. Otherwise, it will display the {{else}}
block.
It is useful to leverage the{{component componentName}}
helper
as it provides a failsafe in case componentName
can not be
resolved to a component.
Let's assume componentName
doesn't resolve to a component.
will throw an error as it can't find the expected component.
Again, let's assume componentName
doesn't resolve to a component.
No error is thrown, Damn...
is displayed and your life
as a developer just got better.
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.