Skip to content

Commit

Permalink
[WIP FEATURE] Impl. buildRouteInfoMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
chadhietala committed Dec 5, 2018
1 parent daad932 commit 78f067f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/@ember/-internals/routing/lib/system/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import {
Object as EmberObject,
typeOf,
} from '@ember/-internals/runtime';
import { EMBER_ROUTING_ROUTER_SERVICE } from '@ember/canary-features';
import {
EMBER_ROUTING_BUILD_ROUTEINFO_METADATA,
EMBER_ROUTING_ROUTER_SERVICE,
} from '@ember/canary-features';
import { assert, deprecate, info, isTesting } from '@ember/debug';
import { ROUTER_EVENTS } from '@ember/deprecated-features';
import { assign } from '@ember/polyfills';
Expand Down Expand Up @@ -2554,4 +2557,10 @@ if (EMBER_ROUTING_ROUTER_SERVICE && ROUTER_EVENTS) {
});
}

if (EMBER_ROUTING_BUILD_ROUTEINFO_METADATA) {
Route.reopen({
buildRouteInfoMetaData() {},
});
}

export default Route;
5 changes: 5 additions & 0 deletions packages/@ember/canary-features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const DEFAULT_FEATURES = {
GLIMMER_MODIFIER_MANAGER: null,
EMBER_METAL_TRACKED_PROPERTIES: null,
EMBER_GLIMMER_ANGLE_BRACKET_INVOCATION: true,
EMBER_ROUTING_BUILD_ROUTEINFO_METADATA: null,
};

/**
Expand Down Expand Up @@ -84,3 +85,7 @@ export const EMBER_GLIMMER_ANGLE_BRACKET_INVOCATION = featureValue(
FEATURES.EMBER_GLIMMER_ANGLE_BRACKET_INVOCATION
);
export const GLIMMER_MODIFIER_MANAGER = featureValue(FEATURES.GLIMMER_MODIFIER_MANAGER);

export const EMBER_ROUTING_BUILD_ROUTEINFO_METADATA = featureValue(
FEATURES.EMBER_ROUTING_BUILD_ROUTEINFO_METADATA
);

0 comments on commit 78f067f

Please sign in to comment.