Last active
June 30, 2016 22:28
-
-
Save ro0gr/b58f52ff13b7b8c09baec61ee56913f0 to your computer and use it in GitHub Desktop.
didTransition
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' | |
}); | |
Router.map(function() { | |
this.route('test'); | |
this.route('my-route', function() { | |
this.route('test', function() { | |
this.route('deep'); | |
}); | |
}); | |
}); | |
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: function() { | |
alert('my-route model'); | |
}, | |
actions: { | |
willTransition: function() { | |
debugger | |
alert('my-route willTransition'); | |
return true; | |
}, | |
didTransition: function() { | |
alert('my-route didTransition'); | |
return true; | |
} | |
} | |
}); |
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: function() { | |
alert('my-route.test.deep model'); | |
}, | |
actions: { | |
willTransition: function() { | |
debugger | |
alert('my-route.test.deep willTransition'); | |
return true; | |
}, | |
didTransition: function() { | |
alert('my-route.test.deep didTransition'); | |
return true; | |
} | |
} | |
}); |
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: function() { | |
alert('my-route.test model'); | |
}, | |
actions: { | |
willTransition: function() { | |
debugger | |
alert('my-route.test willTransition'); | |
return true; | |
}, | |
didTransition: function() { | |
alert('my-route.test didTransition'); | |
return true; | |
} | |
} | |
}); |
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: function() { | |
alert('model'); | |
}, | |
actions: { | |
didTransition: function() { | |
alert('test didTransition') | |
}, | |
willTransition: function() { | |
alert("test willTransition"); | |
} | |
} | |
}); |
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.8.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": "1.12.2", | |
"ember-data": "2.5.2", | |
"ember-template-compiler": "1.12.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment