Created
March 13, 2015 11:25
-
-
Save telekosmos/6bcd27dd902096499fd3 to your computer and use it in GitHub Desktop.
ES6 module syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Both export declaration seems to have the same semantics as for babeljs.io | |
// export class Welcome { | |
class Welcome { | |
constructor(){ | |
this.heading = 'Welcome to the Aurelia Navigation App!'; | |
this.firstName = 'John'; | |
this.lastName = 'Doe'; | |
} | |
get fullName(){ | |
return `${this.firstName} ${this.lastName}`; | |
} | |
welcome(){ | |
alert(`Welcome, ${this.fullName}!`); | |
} | |
} | |
export default Welcome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment