I am unable to add OpenUI5(resources/sap-ui-core.js) as external library in angular project. How to use function in ts file? This might help . I tried to add lines in angular-cli.json:
"scripts": [
"../node_modules/chart.js/dist/Chart.bundle.min.js",
"../node_modules/chart.js/dist/Chart.min.js",
"../src/assets/openui5/sap-ui-core.js"
],
but I don;t know how to use it in ts file for method calls.
由于UI5是捆绑销售商品,并且已加载到页面上,因此应该可以通过全局变量“ sap”访问它,如下所示:
sap.ui.getCore().getConfiguration().getTheme()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.