Forked from chadhietala/controllers.application.js
Last active
April 16, 2017 23:43
-
-
Save scalvert/2e0bac9e9534736fc115a2a3518ddaaf to your computer and use it in GitHub Desktop.
Pathless Routes For Deferred Rendering
This file contains 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 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('feed-shell', { path: '/' }, function() { | |
this.route('feed', { path: '' }) | |
}) | |
}); | |
export default Router; |
This file contains 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({ | |
model() { | |
return new Promise((r) => { | |
setTimeout(() => { | |
r() | |
}, 1000) | |
}) | |
} | |
}); |
This file contains 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({ | |
}); |
This file contains 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
body { | |
margin: 0; | |
padding: 0; | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12pt; | |
background: #e9ebee | |
} | |
nav { | |
width: 100%; | |
height: 50px; | |
background: #3b5998; | |
} | |
.item { | |
background: #fff; | |
border: 1px solid blue; | |
width: 100%; | |
padding: 10px; | |
overflow: hidden; | |
margin-bottom: 10px; | |
} | |
.image { | |
width: 50px; | |
height: 50px; | |
float: left; | |
} | |
.post-image { | |
display: block; | |
} | |
.post-content { | |
width: 300px; | |
height: 10px; | |
margin-left: 10px; | |
float: left; | |
} | |
.ghost-image { | |
background: #D3D3D3; | |
} | |
.ghost-text { | |
width: 300px; | |
height: 10px; | |
margin-left: 10px; | |
background: #D3D3D3; | |
float: left; | |
} |
This file contains 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.12.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.12.0", | |
"ember-template-compiler": "2.12.0", | |
"ember-testing": "2.12.0" | |
}, | |
"addons": { | |
"ember-data": "2.12.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment