Skip to content

Commit e88965d

Browse files
revert(ResolveData): Remove @resolvedata decorator
Relates to #36
1 parent 5fe6cb4 commit e88965d

File tree

5 files changed

+2
-53
lines changed

5 files changed

+2
-53
lines changed

src/decorators/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/decorators/resolveData.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

src/directives/uiView.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ const ng2ComponentInputs = (ng2CompClass: Type<any>, component: any) => {
5757
.reduce(flattenR, [])
5858
.map(input => ({ token: input, prop: input }));
5959

60-
/** Get @ResolveData('foo') _foo" inputs */
61-
let __inputs = component.__inputs || {};
62-
let resolves = Object.keys(__inputs)
63-
.map(key => ({ token: key, prop: __inputs[key] }));
64-
65-
return _props.concat(inputs).concat(resolves) as InputMapping[];
60+
return _props.concat(inputs) as InputMapping[];
6661
};
6762

6863
/**

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @ng2api @module ng2 */ /** for typedoc */
22

33
export * from "./interface";
4-
export * from "./decorators/index";
54
export * from "./providers";
65
export * from "./uiRouterNgModule";
76
export * from "./uiRouterConfig";

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"no-eval": true,
3131
"no-internal-module": true,
3232
"no-require-imports": true,
33-
"no-string-literal": true,
33+
"no-string-literal": false,
3434
"no-switch-case-fall-through": true,
3535
"no-trailing-comma": true,
3636
"no-trailing-whitespace": false,

0 commit comments

Comments
 (0)