Skip to content

Instantly share code, notes, and snippets.

Learning new stuff ...

Kiffin Gish kgish

Learning new stuff ...
View GitHub Profile
@kgish
kgish / gist:4a93d4d84324628f0a79
Created Nov 30, 2015
Emberjs: Getting another store from controller
View gist:4a93d4d84324628f0a79
App.FormController = Em.ObjectController.extend({
tagArray: Em.A(),
init: function() {
this.setTagArray();
this._super();
},
setTagArray: function() {
var _this = this;
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.7.0/ember.js"></script>
<meta charset="utf-8">
You can’t perform that action at this time.