Skip to Content
Dec 27, 2016 at 08:18 PM

Creating an AngularJS Widget in Backoffice


Hello, I'm currently investigating how to develop an angular widget for backoffice. I thought the starting point would be this post: but working with Hybris 6.2 following the post or just downloading the zip, there's an issue with the angularCNG variable defined in angularwidget.js. It dones not find it and the error on JS console is: Can't find variable: AngularCNG in the line in which you define init method

 AngularCNG.init = function(widgetName, controller, services) {

I'm having some troubles to find the error since it's working on zk framework. I added the js-libraries.xml file with

 <libraries xmlns:xsi=""

But there are no angular imports into the resources when backoffice loads up. I think the problem may be related with that.

If you have any thoughts or ideas related with this issue I would really appreciate it since the post in help.hybris is not functional.