ng2-tree icon indicating copy to clipboard operation
ng2-tree copied to clipboard

Internet Explorer: Object doesn't support property or method 'Reflect.has()'

Open omid-nazifi opened this issue 8 years ago • 1 comments

I have faced to mentioned error when run my Tree project on IE. I have already searched about it and figured out what the problem is. In ng2-tree source was used has function in "/src/utils/fn.utils.ts" inner get() method. Actually it doesn't support with IE. look bottom of page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/has

Please let me know how can handle it? Is it possible to update source code? Thanks

omid-nazifi avatar Jan 05 '18 11:01 omid-nazifi

I found a solution. like everything that might be IR doesn't support, you have to use pollyfills and import which make your application compatible for different browsers. I have added below line: import 'core-js/es6/reflect';

omid-nazifi avatar Jan 05 '18 13:01 omid-nazifi