FANDOM


Ember Cheet Sheet!

How to pass parameters between routes?

http://stackoverflow.com/questions/19098901/passing-parameters-between-routes

Initialize property in model/controller with dependency

App.MyModel = Em.Object.extend({
	myData: null,
	myName: null,
	NameExtension: null,

	nameExtensionUpdater: function(): void {
		var myData = this.get('myData');
		if (myData) {
			var name = this.get('myData').name;
			this.set('myName', name.substr(0, name.lastIndexOf('.')));
			this.set('NameExtension', name.substr(name.lastIndexOf('.') + 1));
		}
	}.observes('myData').on('init')
});

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.