Skip to Content
0
Former Member
Apr 08, 2016 at 12:46 PM

Load extrnal js file via component.js and include tag

242 Views

Hi,

i have problem with loaded external js file, my example:

sap.ui.core.UIComponent.extend("Component", {
  metadata: {
     name: "MyCOmponent",
     version: "1.1",
      library: "my.component",
     includes: [
               'css/myStyle.css',
               'https://raw.githack.com/zloirock/core-js/v2.2.2/client/shim.min.js'
        ],
     }
}

and this example work correct in ff and chrome but in ie11 is error with load js file.

Error: File: UIComponent.js, Line: 6, Column: 283

if i load js file by script tag or jQuery.sap.includeScript() method everything is allright in all browsers.

Regards, Bart