Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kellyselden/ember-router-service
service:router alias for router:main
https://github.com/kellyselden/ember-router-service
Last synced: 16 days ago
JSON representation
service:router alias for router:main
- Host: GitHub
- URL: https://github.com/kellyselden/ember-router-service
- Owner: kellyselden
- License: mit
- Created: 2015-10-01T18:22:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-05T02:24:22.000Z (over 6 years ago)
- Last Synced: 2024-12-21T09:30:42.061Z (about 1 month ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-router-service
[![npm version](https://badge.fury.io/js/ember-router-service.svg)](https://badge.fury.io/js/ember-router-service)
[![Build Status](https://travis-ci.org/kellyselden/ember-router-service.svg?branch=master)](https://travis-ci.org/kellyselden/ember-router-service)
[![Ember Version](https://img.shields.io/badge/ember-1.13%2B-brightgreen.svg)](https://www.emberjs.com/)service:router alias for router:main
### Usage
```js
export default Ember.Component.extend({
router: Ember.inject.service(),actions: {
goSomewhere() {
this.get('router.router').transitionTo('somewhere-else');
}
}
});
```