What needs to get done for v1?
- Guides
- Tutorials
- BigTest React helpers
- We need a visit helper for all the frameworks
- Update docs site / remove the current doc generator site
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
stringify: Ember.computed(function() { | |
let stringify = JSON.stringify(EmberObject); | |
return stringify; | |
}), | |
parse: Ember.computed('stringify', function() { |
#!/usr/bin/env bash | |
# Check for Homebrew, install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
# Update homebrew recipes | |
# brew update | |
# Binaries | |
binaries=( |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
actions: { | |
work(event){ | |
event.preventDefault(); | |
alert('woah'); | |
} | |
} |
/* | |
* Adds options to the `ember build` and `ember serve` commands to configure | |
* which API endpoints will be hit as well as whether to disable mirage or not. | |
*/ | |
var ServeCommand = require('ember-cli/lib/commands/serve'); | |
var BuildCommand = require('ember-cli/lib/commands/build'); | |
var TestCommand = require('ember-cli/lib/commands/test'); | |
var DeployCommand = require('ember-cli-deploy/lib/commands/deploy'); |
This? |
import React, { Component } from 'react'; | |
import { | |
Text, | |
Image, | |
StyleSheet | |
} from 'react-native'; | |
import { | |
Card, | |
CardItem, |
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
init: function() { | |
this._super.apply(this, arguments); | |
console.log(this.get('tagName')); | |
}, | |
whatIsTheTagName: Ember.computed('tagName', function() { | |
let tagName = this.get('tagName'); | |
if (tagName === null) { |
import React, { Component } from 'react' | |
class App extends Component { | |
render() { | |
let isCondition = false; | |
let Component = isCondition ? <OneComponent /> : <AnotherComponent />; | |
return ( | |
<div> | |
<Component /> |