Skip to content

Instantly share code, notes, and snippets.

@jpetitcolas
Created February 27, 2015 10:45
Show Gist options
  • Save jpetitcolas/eb0886750b7699ee699c to your computer and use it in GitHub Desktop.
Save jpetitcolas/eb0886750b7699ee699c to your computer and use it in GitHub Desktop.

Revisions

  1. jpetitcolas created this gist Feb 27, 2015.
    11 changes: 11 additions & 0 deletions Application.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    import View from "./folder/View";

    class Application {
    constructor() {
    this.view = new View("I'm a view!");
    }

    sayHello() {
    console.log("Hello");
    }
    }
    5 changes: 5 additions & 0 deletions View.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    class View {
    constructor(test) {
    this.test = test;
    }
    }