Sha256: 244abdf7e826808b9b1980df190e6fa9cf2b49cb2b593aea835b5e89f0e03a89
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 Bytes
Contents
/** @module ember */ import { get } from '@ember/-internals/metal'; /** Returns the currently active route name. Example: ```javascript function validateRouteName() { equal(currentRouteName(), 'some.path', "correct route was transitioned into."); } visit('/some/path').then(validateRouteName) ``` @method currentRouteName @return {Object} The name of the currently active route. @since 1.5.0 @public */ export default function currentRouteName(app) { let routingService = app.__container__.lookup('service:-routing'); return get(routingService, 'currentRouteName'); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.6.0.0 | dist/es/ember-testing/lib/helpers/current_route_name.js |