in html in angularjs:
<selectone ng-if="ctrl.rolestatus" config="ctrl.rolestatus"></selectone>
in js:
this.rolestatus = {
data: this.status,
read: false,
default: this.status[0].value,
change: function selectChange(value) {//
console.log(value)
this.selectActive = value.isActive
}
}
Shouldn"t ng-if be equal to Boolean value in selectone? why is it equal to object? And what does config in selectone mean?