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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
inputValue: null, | |
test: function() { | |
this.send('changeName', 'Name We Never See'); | |
}.observes('totalUsers'), | |
actions: { |
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
{"title":"Anonymous Gistbook","author":"JackEllis","pages":[{"pageName":"","sections":[{"type":"text","source":"Issue with router"},{"type":"javascript","source":"// This works, notice that I return the foodRoute with .render()\nfood: function () {\n var that = this;\n this._prepareTrackingSection().done(function() {\n // The food route\n that.foodRoute = new FoodRoute({\n container: that.layout.main\n });\n\n that.foodRoute.setCollection();\n\n return that.foodRoute.render();\n });\n },"},{"type":"javascript","source":"// This does not render the route... Doesn't call .render() on the route.\n// But it worked fine when it wasn't inside a promise. When I simply had return that.foodRoute\n// (outside the callback of done(), it worked fine)\nfood: function () {\n var that = this;\n this._prepareTrackingSection().done(function() {\n // The food route\n that.foodRoute = new FoodRoute({ |
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
{"title":"Anonymous Gistbook","author":"JackEllis","pages":[{"pageName":"","sections":[{"type":"text","source":"Using it properly"},{"type":"html","source":"<div id=\"i-hate-gulp\">\n Hello\n</div>"},{"type":"css","source":"#i-hate-gulp {\n font-size:30px;\n font-family:'Open Sans', verdana;\n}"},{"type":"javascript","source":"alert('I h8 Gulp')"}]}],"public":true} |
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
<?php echo 'hi'; ?> |