widgetNameFactory returns 'NaN'


Hello All,

I have a simple custom widget. The controller code follows:

function ($scope, $log, widgetNameFactory) {
    console.log("customInput widget");

    // This is returning NaN
    this.name = widgetNameFactory.getName('customInput')

    if (!$scope.properties.isBound('value')) {
        console.log('The customInput property named "value" has to be bound to a variable');

The problem is the widgetNameFactory.getName function returns NaN, no matter what parameter I use. What could be the problem?

BTW, I haven't been able to find documentation about this class.

Thank you.

No answers yet.