Skip to content

Commit

Permalink
8c67082 chore(bundles): don't distribute sfx bundles for http
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozlowski-opensource committed Nov 30, 2015
1 parent c94fd16 commit b10d381
Show file tree
Hide file tree
Showing 35 changed files with 1,426 additions and 3,589 deletions.
4 changes: 2 additions & 2 deletions BUILD_INFO
@@ -1,2 +1,2 @@
Mon Nov 30 16:52:17 UTC 2015
fc5f67b262a0c44f62e703602339ecc41e5e319e
Mon Nov 30 17:09:33 UTC 2015
8c670822ced84b8e36fe6b619b09542602427785
539 changes: 267 additions & 272 deletions _analyzer.dart

Large diffs are not rendered by default.

33 changes: 29 additions & 4 deletions lib/router.dart
Expand Up @@ -9,9 +9,8 @@ export "src/router/router.dart" show Router;
export "src/router/router_outlet.dart" show RouterOutlet;
export "src/router/router_link.dart" show RouterLink;
export "src/router/instruction.dart" show RouteParams, RouteData;
export "src/router/route_registry.dart" show RouteRegistry;
export "src/router/platform_location.dart" show PlatformLocation;
export "src/router/route_registry.dart"
show RouteRegistry, ROUTER_PRIMARY_COMPONENT;
export "src/router/location_strategy.dart" show LocationStrategy, APP_BASE_HREF;
export "src/router/hash_location_strategy.dart" show HashLocationStrategy;
export "src/router/path_location_strategy.dart" show PathLocationStrategy;
Expand All @@ -29,13 +28,39 @@ import "src/router/path_location_strategy.dart" show PathLocationStrategy;
import "src/router/router.dart" show Router, RootRouter;
import "src/router/router_outlet.dart" show RouterOutlet;
import "src/router/router_link.dart" show RouterLink;
import "src/router/route_registry.dart"
show RouteRegistry, ROUTER_PRIMARY_COMPONENT;
import "src/router/route_registry.dart" show RouteRegistry;
import "src/router/location.dart" show Location;
import "package:angular2/core.dart"
show ApplicationRef, provide, OpaqueToken, Provider;
import "package:angular2/src/facade/exceptions.dart" show BaseException;

/**
* Token used to bind the component with the top-level [RouteConfig]s for the
* application.
*
* ### Example ([live demo](http://plnkr.co/edit/iRUP8B5OUbxCWQ3AcIDm))
*
* ```
* import {Component} from 'angular2/angular2';
* import {
* ROUTER_DIRECTIVES,
* ROUTER_PROVIDERS,
* RouteConfig
* } from 'angular2/router';
*
* @Component({directives: [ROUTER_DIRECTIVES]})
* @RouteConfig([
* {...},
* ])
* class AppCmp {
* // ...
* }
*
* bootstrap(AppCmp, [ROUTER_PROVIDERS]);
* ```
*/
const OpaqueToken ROUTER_PRIMARY_COMPONENT =
const OpaqueToken("RouterPrimaryComponent");
/**
* A list of directives. To use the router directives like [RouterOutlet] and
* [RouterLink], add this to your `directives` array in the [View] decorator of your
Expand Down
9 changes: 3 additions & 6 deletions lib/src/router/async_route_handler.dart
@@ -1,19 +1,16 @@
library angular2.src.router.async_route_handler;

import "route_handler.dart" show RouteHandler;
import "package:angular2/src/facade/async.dart" show Future, PromiseWrapper;
import "package:angular2/src/facade/lang.dart" show isPresent, Type;
import "route_handler.dart" show RouteHandler;
import "instruction.dart" show RouteData, BLANK_ROUTE_DATA;

class AsyncRouteHandler implements RouteHandler {
Function _loader;
Map<String, dynamic> data;
/** @internal */
Future<dynamic> _resolvedComponent = null;
Type componentType;
RouteData data;
AsyncRouteHandler(this._loader, [Map<String, dynamic> data = null]) {
this.data = isPresent(data) ? new RouteData(data) : BLANK_ROUTE_DATA;
}
AsyncRouteHandler(this._loader, [this.data]) {}
Future<dynamic> resolveComponentType() {
if (isPresent(this._resolvedComponent)) {
return this._resolvedComponent;
Expand Down
143 changes: 0 additions & 143 deletions lib/src/router/component_recognizer.dart

This file was deleted.

0 comments on commit b10d381

Please sign in to comment.