aliasMethod (methodName) public
Makes a method available via an additional name.
App.Person = Ember.Object.extend({ name: function() { return 'Tomhuda Katzdale'; }, moniker: Ember.aliasMethod('name') }); let goodGuy = App.Person.create(); goodGuy.name(); // 'Tomhuda Katzdale' goodGuy.moniker(); // 'Tomhuda Katzdale'
Parameters:
-
methodName
String
- name of the method to alias
Please login to continue.