Skip to content

Commit

Permalink
Document public properties of RouterService
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed Aug 31, 2017
1 parent 9654d2a commit aa7b454
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/ember-routing/lib/services/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,33 @@ import { shallowEqual } from '../utils';
@category ember-routing-router-service
*/
const RouterService = Service.extend({

/**
@property currentRouteName
@type String
@public
*/
currentRouteName: readOnly('_router.currentRouteName'),

/**
@property currentURL
@type String
@public
*/
currentURL: readOnly('_router.currentURL'),

/**
@property location
@type String
@public
*/
location: readOnly('_router.location'),

/**
@property rootURL
@type String
@public
*/
rootURL: readOnly('_router.rootURL'),
_router: null,

Expand Down

0 comments on commit aa7b454

Please sign in to comment.