Skip to content

Instantly share code, notes, and snippets.

View poulet42's full-sized avatar

Corentin poulet42

  • Budapest
  • 03:08 (UTC +02:00)
View GitHub Profile
@poulet42
poulet42 / router.js
Last active February 1, 2023 11:57 — forked from sglanzer-deprecated/router.js
Sync and async routing
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: 'none',
rootURL: config.rootURL
});
Router.map(function() {
this.route('parent', function() {
import DS from "ember-data";
export default DS.JSONAPIAdapter.extend();
<button local-class="run" type="button" {{on "click" (perform this.countToTenTask)}}>Run the global countToTenTask via a local task</button>