Title / Description
Code import Ember from 'ember'; import baseService from 'data-layer/mixins/base-service'; export default Ember.Service.extend(baseService, { apiPath: 'lookups/userprofile', cidbModel: 'user-profile', find:function() { return this.get('ajax').invoke('GET', this._buildUrl()) .then( response => this._handleSingleResponse(response), response => this._handleError(response)); } });
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code