'use strict';
import backbone from 'backbone';

class Hello extends backbone.View {
    render() {
        this.$el.html('Hello, world.');
    }
}

var myView = new Hello({el: document.getElementById('root')});
myView.render();
'use strict';
import backbone from 'backbone';

class Person extends backbone.Model {
    getFullName() {
        return this.get('firstName') + ' ' + this.get('lastName');
    }
}

class Hello extends backbone.View {
    initialize() {
        this.person = new Person({
            firstName: 'George',
            lastName: 'Washington'
        });
    }
    render() {
        this.$el.html('Hello, ' + this.person.getFullName() + '.');
    }
}

var myView = new Hello({el: document.getElementById('root')});
myView.render();
Add model class with method.
Add model class with method.
