Skip to content

Commit f551054

Browse files
committed
feat(request): start request on init input
1 parent c53ec60 commit f551054

2 files changed

Lines changed: 9 additions & 39 deletions

File tree

package.json

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mbamobi/http-plugins-ionic",
3-
"version": "1.0.0",
3+
"version": "1.0.0-nightly.20170208T200704Z.c53ec60",
44
"description": "Plugins HTTP additionals to projects ionic",
55
"main": "dist/umd/index.js",
66
"typings": "dist/esm/index.d.ts",
@@ -32,42 +32,6 @@
3232
"README.md",
3333
"CHANGELOG.md"
3434
],
35-
"devDependencies": {
36-
"@angular/common": "2.2.1",
37-
"@angular/compiler": "2.2.1",
38-
"@angular/compiler-cli": "2.2.1",
39-
"@angular/core": "2.2.1",
40-
"@angular/forms": "2.2.1",
41-
"@angular/http": "2.2.1",
42-
"@angular/platform-browser": "2.2.1",
43-
"@angular/platform-browser-dynamic": "2.2.1",
44-
"@angular/platform-server": "2.2.1",
45-
"@mbamobi/configuration": "^1.0.0",
46-
"@mbamobi/http": "^1.0.0",
47-
"@mbamobi/url-resolver": "^1.0.0",
48-
"@ramonornela/jsonpath": "0.2.10",
49-
"@types/jasmine": "2.2.33",
50-
"codelyzer": "2.0.0-beta.4",
51-
"commitizen": "^2.8.6",
52-
"conventional-changelog-cli": "^1.2.0",
53-
"cpx": "1.5.0",
54-
"cz-conventional-changelog": "^1.2.0",
55-
"fluid-publish": "1.1.0",
56-
"github": "0.2.4",
57-
"husky": "^0.11.9",
58-
"ionic-angular": "^2.0.0-rc.3",
59-
"ionic-native": "^2.2.12",
60-
"jasmine": "2.5.2",
61-
"nyc": "10.0.0",
62-
"rimraf": "^2.5.4",
63-
"rxjs": "5.0.0-beta.12",
64-
"tslint": "4.3.1",
65-
"tslint-eslint-rules": "3.2.3",
66-
"tslint-ionic-rules": "0.0.8",
67-
"typedoc": "^0.5.1",
68-
"typescript": "2.0.9",
69-
"zone.js": "^0.6.21"
70-
},
7135
"peerDependencies": {
7236
"@angular/core": "^2.0.0",
7337
"@angular/http": "^2.0.0",
@@ -95,5 +59,8 @@
9559
"bugs": {
9660
"url": "https://github.com/mbamobi/http-plugins-ionic/issues"
9761
},
98-
"homepage": "https://github.com/mbamobi/http-plugins-ionic"
62+
"homepage": "https://github.com/mbamobi/http-plugins-ionic",
63+
"dependencies": {
64+
"@ramonornela/jsonpath": "0.2.10"
65+
}
9966
}

src/components/request.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class Request {
1010
@Input() params: Object;
1111
@Input() requestOptions: any;
1212
@Input() options: any;
13+
@Input() requestOnInit: boolean = true;
1314

1415
@Output() loaded = new EventEmitter();
1516

@@ -39,7 +40,9 @@ export class Request {
3940
this.options
4041
);
4142

42-
this.request();
43+
if (this.requestOnInit) {
44+
this.request();
45+
}
4346

4447
if (this.error) {
4548
this.error.retry.subscribe(() => {

0 commit comments

Comments
 (0)