import Ember from 'ember';
var Router = Ember.Router.extend({
});
Router.map(function() {
this.resource('posts', function() {
this.route('new');
this.route('edit');
this.route('post',{'path':'/:postId'});
});
});
export default Router;
ember will read template from
posts/newif you use resource will read template from new
沒有留言:
張貼留言