Note: I'm quite new to angularjs
What is the best solution/practice for problem: I have an array or typed values, for each type there should be different input(template and input validation)?
E.g. and simplified
var vars = [
    {
        type: 'int',
        value: 42,
        min: 0,
        max: 42
    },
    {
        type: 'text',
        value: 'foobar'
    },
]
for 'int' template will be
<input type="range" max="{{max}}" min="{{min}}" value="{{value}}" />
and for 'text'
<textarea>{{value}}</textarea>
In real case there will be quite many inputs with weird interfaces
 
    