nl_tokens: / * Convert from Angular view - model to Select2 view - model .
pl_tokens: function ( angular_data ) { var model = [ ] ; if ( ! angular_data ) { return model ; } if ( opts . simple_tags ) { model = [ ] ; angular . forEach ( angular_data , function ( value , index ) { <mask> . push ( { 'id' : value , 'text' : value } ) ; } ) ; } else { model = angular_data ; } return model ; }