refactor(browser): merge static & dynamic platforms
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import {ImageDemo} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapApp} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(ImageDemo);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapRender} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
|
@ -16,7 +16,6 @@ System.config({
|
||||
'@angular/compiler': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/common': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser-dynamic': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||
'rxjs': {
|
||||
defaultExtension: 'js'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bootstrap} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrap} from '@angular/platform-browser';
|
||||
import {ImageDemo} from './index_common';
|
||||
|
||||
export function main() {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {InputCmp} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapApp} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(InputCmp);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapRender} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
|
@ -15,7 +15,6 @@ System.config({
|
||||
'@angular/compiler': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/common': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser-dynamic': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||
'rxjs': {
|
||||
defaultExtension: 'js'
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {HelloCmp} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapApp} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(HelloCmp);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapRender} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
|
@ -15,7 +15,6 @@ System.config({
|
||||
'@angular/compiler': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/common': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser-dynamic': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||
'rxjs': {
|
||||
defaultExtension: 'js'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapApp} from '@angular/platform-browser';
|
||||
import {App} from './index_common';
|
||||
|
||||
export function main() {
|
||||
|
@ -1,8 +1,5 @@
|
||||
import {ApplicationRef} from '@angular/core';
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
|
||||
// TODO
|
||||
import {UiArguments, FnArg, PRIMITIVE, ClientMessageBrokerFactory} from '@angular/platform-browser';
|
||||
import {bootstrapRender, UiArguments, FnArg, PRIMITIVE, ClientMessageBrokerFactory} from '@angular/platform-browser';
|
||||
|
||||
const ECHO_CHANNEL = "ECHO";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {PromiseWrapper} from '@angular/core/src/facade/async';
|
||||
import {Component} from '@angular/core';
|
||||
import {ServiceMessageBrokerFactory, PRIMITIVE} from '@angular/platform-browser/src/worker_app';
|
||||
import {ServiceMessageBrokerFactory, PRIMITIVE} from '@angular/platform-browser';
|
||||
|
||||
const ECHO_CHANNEL = "ECHO";
|
||||
|
||||
|
@ -15,7 +15,6 @@ System.config({
|
||||
'@angular/compiler': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/common': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser-dynamic': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||
'rxjs': {
|
||||
defaultExtension: 'js'
|
||||
|
@ -1,7 +1,5 @@
|
||||
import {ROUTER_PROVIDERS} from '@angular/router-deprecated';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
|
||||
import {WORKER_APP_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
import {bootstrapApp, WORKER_APP_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
|
||||
import {HashLocationStrategy, LocationStrategy} from '@angular/common';
|
||||
import {App} from './index_common';
|
||||
|
@ -1,6 +1,4 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
|
||||
import {WORKER_RENDER_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
import {bootstrapRender, WORKER_RENDER_LOCATION_PROVIDERS} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js", WORKER_RENDER_LOCATION_PROVIDERS);
|
||||
|
@ -15,7 +15,6 @@ System.config({
|
||||
'@angular/compiler': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/common': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser-dynamic': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router-deprecated': {main: 'index.js', defaultExtension: 'js'},
|
||||
'rxjs': {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {TodoApp} from './index_common';
|
||||
import {bootstrapApp} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapApp} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapApp(TodoApp);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {bootstrapRender} from '@angular/platform-browser-dynamic';
|
||||
import {bootstrapRender} from '@angular/platform-browser';
|
||||
|
||||
export function main() {
|
||||
bootstrapRender("loader.js");
|
||||
|
@ -15,7 +15,6 @@ System.config({
|
||||
'@angular/compiler': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/common': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/platform-browser-dynamic': {main: 'index.js', defaultExtension: 'js'},
|
||||
'@angular/router': {main: 'index.js', defaultExtension: 'js'},
|
||||
'rxjs': {
|
||||
defaultExtension: 'js'
|
||||
|
Reference in New Issue
Block a user