fix(@Page): apply config

This commit is contained in:
Adam Bradley
2015-10-29 15:31:55 -05:00
parent 3027becaae
commit 514b880eeb
2 changed files with 4 additions and 21 deletions

View File

@@ -81,7 +81,7 @@ export function Page(config={}) {
export function ConfigComponent(config) {
return function(cls) {
var annotations = Reflect.getMetadata('annotations', cls) || [];
annotations.push(new Component(config));
annotations.push(new Component(appendConfig(cls, config)));
Reflect.defineMetadata('annotations', annotations, cls);
return cls;
}