Skip to content

Instantly share code, notes, and snippets.

@Gaurav0
Last active March 8, 2016 06:00
Show Gist options
  • Save Gaurav0/35de43cb81fc35ddffb2 to your computer and use it in GitHub Desktop.
Save Gaurav0/35de43cb81fc35ddffb2 to your computer and use it in GitHub Desktop.
Routing!
<p>About Page</p>
{{#link-to "index"}}Index{{/link-to}}
{{#link-to "about"}}About{{/link-to}}
{{outlet}}
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route("about");
});
export default Router;
{
"version": "0.4.0",
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment