Skip to content

Instantly share code, notes, and snippets.

View jevanlingen's full-sized avatar

Jacob van Lingen jevanlingen

  • JDriven
  • Netherlands
View GitHub Profile
@jevanlingen
jevanlingen / controllers.application.js
Last active August 1, 2016 10:03
constructor.modelName
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@jevanlingen
jevanlingen / html-safe.js
Last active July 31, 2018 07:34
Html safe helper for Ember.js
import Ember from 'ember';
export default Ember.Helper.helper( params => {
return new Ember.Handlebars.SafeString(params.join(''));
});
import Ember from 'ember';
import { server, json } from '../initializers/pretender';
server.map(function() {
this.get('/file-types/1', function() {
return json({
'file-types': [{
id: 1,
name: "GIF"
}]