Is it possible to use ng-model
to identify the type of an element?
For example: How can we determine if a specific element is a dropdown or a checkbox?
HTML Code Snippet
<select multiple ng-model='p.color'>
<option value="red">Red</option>
<option value="blue">Blue</option>
</select>
JavaScript Code Snippet
myctrl.controller('ctrl_new', ['$scope',function ($scope) {
$scope.create = function () {
console.log($scope.p['color']);
}
}