{"id":23524459,"url":"https://github.com/nypublicradio/ember-previous","last_synced_at":"2025-05-14T06:18:04.081Z","repository":{"id":57224159,"uuid":"94730867","full_name":"nypublicradio/ember-previous","owner":"nypublicradio","description":"ember addon to expose previous router states","archived":false,"fork":false,"pushed_at":"2017-06-19T13:11:14.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-12-21T09:30:39.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nypublicradio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-19T03:02:02.000Z","updated_at":"2017-07-08T15:46:49.000Z","dependencies_parsed_at":"2022-08-30T02:40:43.096Z","dependency_job_id":null,"html_url":"https://github.com/nypublicradio/ember-previous","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nypublicradio%2Fember-previous","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nypublicradio%2Fember-previous/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nypublicradio%2Fember-previous/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nypublicradio%2Fember-previous/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nypublicradio","download_url":"https://codeload.github.com/nypublicradio/ember-previous/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239217107,"owners_count":19601594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-25T18:16:05.746Z","updated_at":"2025-02-17T01:08:44.863Z","avatar_url":"https://github.com/nypublicradio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-previous\n\nAn addon for exposing some useful states of the ember router.\n\nAdd the `PreviousMixin` to your app router:\n\n```javascript\n...\nimport PreviousMixin from 'ember-previous/mixins/previous';\n\nconst Router = Ember.Router.extend(PreviousMixin, {\n  ...\n});\n\n```\n\nYou'll have access to a `previous` object on all your routes.\n\n```javascript\n// routes/foo.js\nimport Ember from 'ember';\n\nexport default Ember.Route.extend({\n  setupController(controller) {\n    this._super(...arguments);\n    let {\n      path, // foo.bar\n      url, // foo/bar\n      route // foo.bar\n    } = this.get('previous');\n    controller.setProperties({ path, url, route });\n  }\n});\n```\n\n## Installation\n\n* `git clone \u003crepository-url\u003e` this repository\n* `cd ember-previous`\n* `npm install`\n\n## Running\n\n* `ember serve`\n* Visit your app at [http://localhost:4200](http://localhost:4200).\n\n## Running Tests\n\n* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n\n## Building\n\n* `ember build`\n\nFor more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnypublicradio%2Fember-previous","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnypublicradio%2Fember-previous","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnypublicradio%2Fember-previous/lists"}