Skip to content

Instantly share code, notes, and snippets.

@natew
Created November 21, 2015 01:28
Show Gist options
  • Save natew/271fd1623117b45d7204 to your computer and use it in GitHub Desktop.
Save natew/271fd1623117b45d7204 to your computer and use it in GitHub Desktop.
import / export
import fns from './a'
view One {
var a = fns.aa()
}
view Two {
var b = fns.bb()
}
export function aa() {
}
export function bb() {
}
// optional, lets you do import { aa, bb } from './b'
export default { aa, bb }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment