Skip to content

Instantly share code, notes, and snippets.

@Gaurav0
Last active August 29, 2015 14:25
Show Gist options
  • Save Gaurav0/6d323cda7bf45e0481a5 to your computer and use it in GitHub Desktop.
Save Gaurav0/6d323cda7bf45e0481a5 to your computer and use it in GitHub Desktop.
Demonstrate External Dependencies
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
var Router = Ember.Router.extend({
location: 'none'
});
Router.map(function() {
});
export default Router;
body { margin: 12px 16px }
<h1>Welcome to {{appName}}</h1><br><br>
<button class="btn btn-lg btn-info">Button</button>
{{outlet}}<br><br>
{
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/1.13.5/ember.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.13.5/ember-data.js",
"bootstrap-css": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.css"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment