fix(di): allow injecting static attrs without type annotations
Closes #1226
This commit is contained in:
2
modules/angular2/src/di/binding.js
vendored
2
modules/angular2/src/di/binding.js
vendored
@ -140,8 +140,6 @@ function _extractToken(typeOrFunc, annotations) {
|
||||
}
|
||||
ListWrapper.push(depProps, paramAnnotation);
|
||||
|
||||
} else if (paramAnnotation.name === "string") {
|
||||
token = paramAnnotation;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user