All Questions (1,653 questions)



How to call method of a component from a controller?

Posted by Jessica Taylor | Updated on

Want to call method of a component from a controller? You can use on to have your component listen for an event from the controller, then you can use trigger in the controller to emit …

How to do commenting in emberjs script handlebars?

Posted by Jessica Taylor | Updated on

In this example, I have shared how to do commenting in emberjs script handlebars? I recommend using {{!– comment here –}} because this comment syntax can contain new lines and also }} inside the comment. …

this.controller is undefined in Route class

Posted by Editorial Staff | Updated on

this.controller is undefined in Route class. If you want to set properties on the controller, you should use the setupController hook:

How to access controller from route in Ember?

Posted by Jennifer | Updated on

Want to access controller from route in Ember? I think the method controllerFor should be available in this event:

How to remove WordPress Comments through the functions file?

Posted by Prem Tiwari | Updated on

If you want to remove WordPress Comments through the functions file? Open your activated theme’s functions.php file and add this code to remove comment support for pages.

Using separate template files in Ember.js

Posted by Andre Scott | Updated on

Using separate template files in Ember.js. You can use JQuery.ajax to load text file and then Ember.Handlebars.compile to create a template from it:

How to represent complex objects in Ember models?

Posted by Jennifer | Updated on

Want to represent complex objects in Ember models? If you want the property to be a primitive object and not an Ember Object then you can do the following: This is assuming that you don’t …

How to defining routes with custom paths in EmberJS?

Posted by Rohit Kumar | Updated on

Want to defining routes with custom paths in EmberJS? We’re on a roll! While we’re at it, let’s add our third page. This time, things are a little bit different. Everyone at the company calls …

How to install ember CLI in your machine?

Posted by Andre Scott | Updated on

Want to install ember CLI in your machine? You can install the latest version of Ember CLI by running the following command. If you’ve already done this by following the Quick Start guide, feel free …

How to push and pop arrays in Ember.js?

Posted by Jennifer | Updated on

Want to push and pop arrays in Ember.js? For working with collections, Ember.js provides an Array wrapper class, Ember.Array / Ember.MutableArray

How to access a parent model within a nested index route using ember.js?

Posted by Jessica Taylor | Updated on

Want to access a parent model within a nested index route using ember.js? To set the model for the DetailIndexRouter, override it’s model hook and then use modelFor(‘detail’) to access the content item from the …

How to run async in consecutive order in angular?

Posted by Editorial Staff | Updated on

Want to run async in consecutive order in angular? Here is a quick example how to do it. Reduce all promises from the array one by one, the reduce function will chain then() of each …

Component layout not rendered in ContainerView

Posted by Jennifer | Updated on

Component layout not rendered in ContainerView. That should fix your problem. See the layoutName property.

How to access parent property using Controller As notation?

Posted by Andre Scott | Updated on

Want to access parent property using Controller As notation? Since your using the “controller as” notation, witin your ChildCtrl you can access the MainCtrl using $scope.main, for example $scope.main.name.

How to dynamically change header based on AngularJS partial view?

Posted by Jessica Taylor | Updated on

How to dynamically change header based on AngularJS partial view? I just discovered a nice way to set your page title if you’re using routing: JavaScript: HTML: