When I utilized this code snippet
(Reflect.getMetadata('annotations',AppComponent)[0].template);
in a Plunker, it functioned correctly http://plnkr.co/edit/f47uORghJXaq0FtD00Th?p=preview
However, when implementing it in my project, I encountered the following error:
Property 'getMetadata' does not exist on type 'typeof Reflect'
Below are the configurations for my project:
package.json
{
"name": "ng2-demo",
.
.
. (Contents omitted for brevity)
}
Systemjs.code.js
(function (global) {
.
.
. (Contents omitted for brevity)
})(this);
tsconfig.json
{
"compilerOptions": {
.
.
. (Contents omitted for brevity)
}
Despite still using angular2 rc2, I am unsure of the source of this error. Any help is greatly appreciated, thank you.