I am working on an email template that includes a cc option. I want users to be able to add email addresses with commas separating them and then push them to an array called $scope.notifyCtrl.cc
. How can I accomplish this 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 = [];