Permalink
Please sign in to comment.
Browse files
chore(deps): update Angular2 to rc.6 and @angular/router to 3.0.0-rc.…
…2' (#84)
- Loading branch information...
Showing
with
943 additions
and 457 deletions.
- +0 −1 README.md
- +14 −11 doc/pages/bootstrap.jade
- +8 −7 doc/pages/http.jade
- +12 −13 doc/pages/router.jade
- +34 −41 karma-test-shim.js
- +10 −10 package.json
- +23 −35 sample/samples/android/kitchensink.ts
- +22 −4 sample/samples/android/module.ts
- +7 −7 sample/samples/common/router.ts
- +7 −7 sample/samples/ios/hello.ts
- +0 −18 sample/samples/ios/kitchensink.ts
- +22 −4 sample/samples/ios/module.ts
- +1 −1 src/components/component.ts
- +2 −2 src/components/ios/map_view.ts
- +71 −54 src/components/ios/navigator.ts
- +2 −2 src/components/switch.ts
- +8 −2 src/http/{http.ts → http_module.ts}
- +3 −1 src/index.ts
- +3 −7 src/module.ts
- +7 −11 src/renderer/bootstrap.ts
- +1 −1 src/renderer/node.ts
- +15 −8 src/renderer/renderer.ts
- +387 −0 src/renderer/selector.ts
- +0 −13 src/router/router.ts
- +36 −26 src/router/router_link.ts
- +29 −0 src/router/router_module.ts
- +1 −1 src/test_helpers/mock_application_ref.ts
- +49 −0 src/test_helpers/router_testing_module.ts
- +6 −9 src/test_helpers/utils.ts
- +2 −2 src/testing.ts
- +76 −77 test/components/ios/navigator_spec.ts
- +4 −3 test/events/hammer_spec.ts
- +24 −18 test/router/router_link_spec.ts
- +57 −61 test/router/router_spec.ts
20
package.json
| @@ -1,14 +1,32 @@ | ||
| import {NgModule} from '@angular/core'; | ||
| import {CommonModule} from '@angular/common'; | ||
| -import {ReactNativeModule} from 'angular2-react-native'; | ||
| +import {Routes} from '@angular/router'; | ||
| +import {ReactNativeModule, ReactNativeRouterModule, ReactNativeHttpModule} from 'angular2-react-native'; | ||
| import {KitchenSinkApp} from './kitchensink'; | ||
| +import {HelloApp} from "./hello"; | ||
| import {TodoMVC, TodoItem} from '../common/todomvc'; | ||
| -import {Ball} from '../common/animation'; | ||
| +import {GesturesApp} from "./../common/gestures"; | ||
| +import {WidgetsList} from "./widgets"; | ||
| +import {WebViewApp} from './../common/webview'; | ||
| +import {APIsList} from "./apis"; | ||
| +import {HttpApp} from "./../common/http"; | ||
| +import {AnimationApp, Ball} from './../common/animation'; | ||
| + | ||
| +const appRoutes: Routes = [ | ||
| + { path: '', component: HelloApp }, | ||
| + { path: 'todomvc', component: TodoMVC }, | ||
| + { path: 'gestures', component: GesturesApp }, | ||
| + { path: 'widgets', component: WidgetsList }, | ||
| + { path: 'webview', component: WebViewApp }, | ||
| + { path: 'apis', component: APIsList }, | ||
| + { path: 'http', component: HttpApp }, | ||
| + { path: 'animation', component: AnimationApp } | ||
| +]; | ||
| @NgModule({ | ||
| - declarations: [KitchenSinkApp, TodoMVC, TodoItem, Ball], | ||
| - imports: [ReactNativeModule, CommonModule], | ||
| + declarations: [KitchenSinkApp, HelloApp, TodoMVC, TodoItem, GesturesApp, WidgetsList, WebViewApp, APIsList, HttpApp, AnimationApp, Ball], | ||
| + imports: [ReactNativeModule, ReactNativeHttpModule, CommonModule, ReactNativeRouterModule.forRoot(appRoutes)], | ||
| bootstrap: [KitchenSinkApp] | ||
| }) | ||
| export class KitchenSinkModule {} |
Oops, something went wrong.
0 comments on commit
6e5a77d