I've been attempting to establish a default function for the onTagAdding
callback using the tagsInputConfig
provider, but without any success.
tagsInputConfig.setDefaults('tagsInput', {
placeholder: 'Search',
maxTags: 10,
minLength: 5,
maxLength: 40,
replaceSpacesWithDashes: false,
onTagAdding: function (x,y,z) {
debugger; // breakpoint is never called
}
});
Although all the other default options are correctly configured, the callbacks remain ineffective. On the contrary, it works when set as a property:
<tags-input on-tag-adding="onTagAdding($tag)" ng-model="search"></tags-input>
Is there a method available to establish a default function for this particular callback?