1

I've got an array of objects with 3 string properties "title", "description" and "icon". However I would liek to create a custom control for the icon property in order for the user to select icon from a list or a modal or whatever.

However I cant even get past the first example in the getting my custom addon to #work. I've defined the addon and cached the template. However when i use it on the icon property inside the array I get an errror in my console where schemaValidate starts complaining about lack of ngModel controller.

JSFIDDLE: http://jsfiddle.net/awa593ys/

Maybe worth noting: the custom form type works if I use it above the array eg:

this.form = [
    "title",
    {
        key:"description",
        type:"icon"
    },
    ...

1 Answer 1

1

For anyone with the same trouble:

By adding ng-model="$$value$$" to the input element I was able to fix this issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.