I have email template where i have cc option , so for cc i want user to add email address with comma separated then push it to array $scope.notifyCtrl.cc. How i can achieve this task using angularjs 1.5 and above ?
main.html
<div layout="row">
<md-input-container flex="100">
<label>Cc</label>
<input ng-model="notifyCtrl.cc">
</md-input-container>
</div>
ctrl.js
$scope.notifyCtrl = {};
$scope.notifyCtrl.cc = [];
with comma separated? like this : a,b,c,@,... ?[email protected],[email protected]like that