为避免在Query: {
getObjects: () => new Promise((resolve, reject) => {
apiClient.get('/path/to/resource', (err, response) => {
if (err) {
return reject(err)
}
resolve(normalizeFields(response.entities))
})
})
}
上发生AOT静态编译错误,我正尝试避免使用装饰器。
我正在尝试这样实现:
ng build
但是我遇到一个错误:
class BaseComponent implements OnInit{
constructor(){}
ngOnInit() {
this.initialiizeData();
}
}
export const AppComponent = Component({
selector: 'app-button',
template: `
<div class="button">
</div>
`,
styleUrls: ['./button.less'],
})(Basecomponent);