SHARE
TWEET

Untitled

a guest Sep 12th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Ember from 'ember';
  2. import EmberObject, { computed } from '@ember/object';
  3.  
  4. let Person = EmberObject.extend({
  5.   firstName: null,
  6.   lastName: null,
  7.  
  8.   fullName: computed('firstName','lastName',function (){
  9.     return return `${this.firstName} ${this.lastName}`
  10. })
  11. }).create();
  12.  
  13. let ironMan = Person.create({
  14. firstName:"Tony",
  15. lastName: "Stark  
  16. })
  17.  
  18. export default Ember.Component.extend({
  19.  
  20. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top