Skip to content

Commit 92c5a0d

Browse files
author
Nedyalko Nikolov
committed
Merge pull request #48 from NativeScript/nnikolov/ForgottenParam
Fixed appOptions param to right method.
2 parents d28396d + 0757eb1 commit 92c5a0d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-angular",
3-
"version": "0.0.25",
3+
"version": "0.0.26",
44
"description": "",
55
"homepage": "http://www.telerik.com",
66
"bugs": "http://www.telerik.com",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Type, ApplicationRef, Provider } from 'angular2/core';
22

33
export type BindingArray = Array<Type | Provider | Array<any>>;
4-
export function bootstrap(appComponentType: any, componentInjectableBindings?: BindingArray, appOptions?: any): Promise<ApplicationRef>;
4+
export function bootstrap(appComponentType: any, componentInjectableBindings?: BindingArray): Promise<ApplicationRef>;
55
export function nativeScriptBootstrap(appComponentType: any, customProviders?: BindingArray, appOptions?: any): void;

src/nativescript-angular/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import application = require('application');
3636
export type ProviderArray = Array<Type | Provider | any[]>;
3737

3838
export function bootstrap(appComponentType: any,
39-
customProviders: ProviderArray = null, appOptions: any = null) : Promise<ComponentRef> {
39+
customProviders: ProviderArray = null) : Promise<ComponentRef> {
4040
NativeScriptDomAdapter.makeCurrent();
4141

4242
let nativeScriptProviders: ProviderArray = [
@@ -80,7 +80,7 @@ export function nativeScriptBootstrap(appComponentType: any, customProviders?: P
8080

8181
//profiling.start('ng-bootstrap');
8282
console.log('BOOTSTRAPPING...');
83-
bootstrap(appComponentType).then((appRef) => {
83+
bootstrap(appComponentType, customProviders).then((appRef) => {
8484
//profiling.stop('ng-bootstrap');
8585
console.log('ANGULAR BOOTSTRAP DONE.');
8686
}, (err) =>{

0 commit comments

Comments
 (0)