Issue
After Updating to Angular 2 RC I got the following error:
error TS7008: Member 'summary' implicitly has an 'any' type.
in this line:
@Input() summary;
what's wrong?
Edit: Ok, seem like I get this error on ANY of my public variables.
Solution
Perhaps you changed the value of the noImplicitAny
attribute in your TypeScript compiler configuration... See the tsconfig.json file:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false // <-----
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
You could try to add a type on your property. Something like:
@Input() summary:string;
Answered By - Thierry Templier
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.