Hi I am getting is error Unable to get property 'replace' of undefined or null reference at line below. The cls.name is coming undefined when I run the application in IE 9.
All other browsers my application is running fine.
export function IgComponent(args: any = {}) {
return function (cls) { // get current annotations let annotations = _reflect.getMetadata('annotations', cls) || []; var sel = cls.name //transform Uppercase to dash + LowerCase letter .replace(/([A-Z])/g, (group) => { return "-" + group[0].toLowerCase(); }) //remove first dash and "-component" .slice(1).replace("-component", "");
here is the error detail in attached image
Hello,
Have you included the following scripts into your application?
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.0/es6-shim.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script><script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
If yes, can you confirm you are seeing the same error here - http://igniteui.github.io/igniteui-angular2/
Thanks,
I was missing this. <script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>