Skip to content

Instantly share code, notes, and snippets.

View hotsoft-desenv4's full-sized avatar

Roger Del Nobre hotsoft-desenv4

View GitHub Profile
//app/components/marcas/marcas-form.js
import Component from '@ember/component';
export default Component.extend({
//https://guides.emberjs.com/v3.3.0/components/triggering-changes-with-actions/
//https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/closure-actions.md
actions: {
saveMarca(marca) {
rsvp.js:23 Uncaught TypeError: selfthis.redirectTo is not a function
at marcas-form.js:14
at tryCatcher (rsvp.js:335)
at invokeCallback (rsvp.js:506)
at publish (rsvp.js:492)
at rsvp.js:16
at invoke (backburner.js:335)
at Queue.flush (backburner.js:226)
at DeferredActionQueues.flush (backburner.js:423)
at Backburner._end (backburner.js:957)
@hotsoft-desenv4
hotsoft-desenv4 / marcas-form.js
Last active May 29, 2020 18:54
Glimerless controllfreak functional redirectioninzing full version
app/components/marcas/marcas-form.js
import Component from '@ember/component';
export default Component.extend({
//https://guides.emberjs.com/v3.3.0/components/triggering-changes-with-actions/
//https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/closure-actions.md
actions: {