Last active
January 17, 2018 08:26
-
-
Save nightire/c1971d424a825d1a568bcddbecc5f036 to your computer and use it in GitHub Desktop.
usage of {{in-element}}
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 Controller from 'ember-controller'; | |
export default class ApplicationController extends Controller { | |
} |
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 Route from 'ember-route'; | |
export default class ApplicationRoute extends Route { | |
activate() { | |
super.activate(...arguments); | |
document.body.classList.add('standard'); | |
} | |
} |
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 Component from 'ember-component'; | |
export default class extends Component { | |
constructor() { | |
super(...arguments); | |
this.headerTitle = 'Second Header'; | |
this.secondHeader = document.querySelector('#secondHeader'); | |
} | |
} |
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 Controller from 'ember-controller'; | |
export default class IndexController extends Controller { | |
} |
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 Route from 'ember-route'; | |
export default class IndexRoute extends 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 Router from 'ember-router'; | |
import config from './config/environment'; | |
const ApplicationRouter = Router.extend({ | |
location: 'none', | |
rootURL: config.rootURL | |
}); | |
ApplicationRouter.map(function() { | |
this.route('foo', function() { | |
this.route('child'); | |
}) | |
}); | |
export default ApplicationRouter; |
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
nav { | |
display: flex; | |
align-items: flex-end; | |
} | |
nav > ul[role="menu"] { | |
display: inline-flex; | |
margin-left: 1rem; | |
padding-left: 0; | |
list-style: none; | |
} | |
nav > ul[role="menu"] > li:not(:first-of-type) { | |
margin-left: 0.5rem; | |
} |
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.12.2", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"hack": "//cdn.staticfile.org/hack/0.7.7/hack.css", | |
"standard": "//cdn.staticfile.org/hack/0.7.7/standard.css", | |
"jquery": "//cdn.staticfile.org/jquery/3.2.1/jquery.min.js", | |
"ember": "2.16.2", | |
"ember-template-compiler": "2.16.2", | |
"ember-testing": "2.16.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment