-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
28 lines (25 loc) · 938 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
var customersupportapp = angular.module('customersupportapp', []);
customersupportapp.controller('customerCtrl', function ($scope, $http, $timeout) {
$scope.flagdata = false;
$scope.tempData = {};
$scope.tempData.customer_care_number = '';
$scope.tempData.sec_customer_care_number = '';
$scope.tempData.email_address = '';
$scope.tempData.from_email_address = '';
$scope.custservice = [];
$scope.tempArray = [];
$scope.addMoreCustomerContact = function () {
$scope.tempArray = {
customer_care_number: '',
sec_customer_care_number: '',
email_address: '',
from_email_address: ''
};
$scope.custservice.push($scope.tempArray);
};
});
customersupportapp.filter('capitalize', function () {
return function (input) {
return (!!input) ? input.charAt(0).toUpperCase() + input.substr(1).toLowerCase() : '';
};
});