vm.roleSelectOptions.push({name: 'очистить', id: -1})
vm.onRoleChange(role){
...
if(role.id === -1) {
defaultRole();
}
...
}
a.forEach.call(a, function(el) {
var categories = {
'Animals' :
{ Camel: 'http://pngimg.com/uploads/camel/camel_PNG2920.png' ,
Elephant: 'https://orig00.deviantart.net/fbb1/f/2014/179/d/6/elephant_png_by_wdwparksgal_stock-d7oegd8.png' }
,
'Fruits' :
{ Apple: 'http://markbeechmarketing.com/wp-content/uploads/2013/03/GreenApple.png' ,
Aprikose: 'http://www.boeschbodenspies.com/wp-content/uploads/2017/08/apricot.png' }
};