Ember App Kit: Calling a view gives me Assertion Failed error

113 views Asked by At

I have a View:

HighChart = Ember.View.extend
  //code...

`export default HighChart`

(this is coffeescript syntax)

The file name is: high-chart.coffee

The file is stored in the root views directory

I want to call the view from within this template: templates/accounts/index.hbs

Here is the handlebars I am using: {{ view HighChart }}

I get: Uncaught Error: Assertion Failed: Unable to find view at path 'HighChart'

What am I doing wrong?

1

There are 1 answers

0
Kingpin2k On BEST ANSWER

You need to put it in quotes

{{ view 'HighChart' }}