I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
/* normal flexbox */ | |
.flexbox .flex-container { | |
display: -webkit-flex; | |
display: -moz-flex; | |
display: -ms-flex; | |
display: flex; | |
} | |
.flexbox .flex-container.vertical { | |
display: -webkit-flex; | |
display: -moz-flex; |
If you've filled out some fields in a navigate elsewhere, either via a back button, URL change, or linkTo
transition, there should be a way to intercept that transition and make the user confirm they want to perform the transition.
Use routeTo
handler on form route. Bubble the event if user confirms
navigation.
ES6 and AMD require paths are raw, you can make them mean whatever you want, but by default mean baseUrl+path
. In npm the paths are relative to the file calling require
if the path starts with a directory separater, if there is no separator it looks in node_modules
. For example:
// looks in node_modules
// we'll call this a "vendor require"
var handlebars = require('handlebars');
// looks relative to this file
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
manager | dist | manifest | export | ignore | include | entry |
---|---|---|---|---|---|---|
npm | npm | package.json | cjs | .npmignore | #main | |
bower | git | bower.json | umd | #ignore | #main | |
component | git | component.json | umd | #files | #main | |
spm | git | package.json#spm | umd | .spmignore | #output | #main |
packagist | git | composer.json | umd | |||
ender | npm | package.json | cjs | .npmignore | #ender | |
dojo | ??? | package.json#dojoBuild | umd | #dojoBuild | ||
jspm | npm/git | package.json#jspm | any | #ignore | #files | #main |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).