feat(ElementInjector): implement @PropertySetter

relates to #621
This commit is contained in:
Victor Berchet
2015-03-06 18:12:48 +01:00
parent c3873be295
commit b349c35678
21 changed files with 192 additions and 82 deletions

View File

@ -18,7 +18,7 @@ import {ComponentUrlMapper} from 'angular2/src/core/compiler/component_url_mappe
import {StyleInliner} from 'angular2/src/core/compiler/style_inliner';
import {CssProcessor} from 'angular2/src/core/compiler/css_processor';
import {reflector} from 'angular2/src/reflection/reflection';
import {Reflector, reflector} from 'angular2/src/reflection/reflection';
function setup() {
reflector.registerType(app.HelloCmp, {
@ -156,6 +156,12 @@ function setup() {
"annotations": []
});
reflector.registerType(Reflector, {
"factory": () => reflector,
"parameters": [],
"annotations": []
});
reflector.registerGetters({
"greeting": (a) => a.greeting
});