Last active
July 18, 2016 18:52
-
-
Save phillipkregg/70509921bba52306ee4515f91bcafe61 to your computer and use it in GitHub Desktop.
What does application mean
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
import Ember from 'ember'; | |
import config from './config/environment'; | |
const Router = Ember.Router.extend({ | |
location: 'none', | |
rootURL: config.rootURL | |
}); | |
Router.map(function() { | |
this.route('animals'); | |
}); | |
export default Router; |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
// Here is the 'activate' method that fires whenever the route | |
// is initialized | |
activate: function() { | |
$.notify('From the animals route!'); | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
// Since this model is returned on the application route, | |
// It will be available on EVERY route that you hit. | |
// If you move this out and put it into the "animals" route | |
// then it will only be available on the /animals url | |
model: function() { | |
return ['Tiger', 'Zebra', 'Dolphin', 'Unicorn'] | |
}, | |
// Here is the 'activate' method that fires whenever the route | |
// is initialized | |
activate: function() { | |
$.notify('From the application route'); | |
} | |
}); |
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
import Ember from 'ember'; | |
export default Ember.Route.extend({ | |
// Here is the 'activate' method that fires whenever the route | |
// is initialized | |
activate: function() { | |
$.notify('From the index route!'); | |
} | |
}); |
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
@import url(https://fonts.googleapis.com/css?family=Fira+Sans); | |
body { | |
margin: 12px 16px; | |
font-family: 'Fira Sans', Arial, sans-serif; | |
font-size: 12pt; | |
} | |
a { | |
display: inline-block; | |
background: white; | |
text-decoration: none; | |
padding: 5px 10px; | |
} | |
.application-template { | |
padding: 10px; | |
background: #2A4173; | |
color: white; | |
} | |
.index-template { | |
background: #F3E2B4; | |
color: #000; | |
padding: 10px; | |
} | |
.animal-list-component { | |
padding: 10px; | |
color: white; | |
background: #4F7158; | |
overflow: auto; | |
} | |
.animals-template { | |
padding: 10px; | |
color: black; | |
background: #F3E2B4; | |
} | |
.animal-box { | |
background: #06405C; | |
color: white; | |
padding: 10px; | |
float: left; | |
margin: 10px; | |
} |
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
{ | |
"version": "0.10.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
"ember": "2.6.0", | |
"ember-data": "2.6.1", | |
"ember-template-compiler": "2.6.0", | |
"notify": "https://cdnjs.cloudflare.com/ajax/libs/notify/0.4.2/notify.js" | |
}, | |
"addons": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment