Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3cbb65b

Browse files
author
AbdelrahmanSE
committed
Json2Csv Helper start file
1 parent 42ba6e6 commit 3cbb65b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

‎src/modules/helpers/helpers.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
require("./services/json2CSV.service");
1+
require("./services/Json2Csv.service");
22

33
(function() {
44
"use strict";
55

6-
angular.module("UsersApp.Helpers", ["UsersApp.Helpers.Json2CSV"]);
6+
angular.module("UsersApp.Helpers", ["UsersApp.Helpers.Json2Csv"]);
77

88
})();

‎src/modules/helpers/services/json2CSV.service.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
(function() {
22
"use strict";
33

4-
angular.module("UsersApp.Helpers.Json2CSV", []);
4+
angular.module("UsersApp.Helpers.Json2Csv", []);
55

6-
angular.module("UsersApp.Helpers.Json2CSV").service("Json2CSV", Json2CSV);
6+
angular.module("UsersApp.Helpers.Json2Csv").service("Json2Csv", Json2Csv);
77

8-
function Json2CSV() {
9-
// Download JSON data as CSV
8+
function Json2Csv() {
9+
// Json2Csv JSON data as CSV
1010
this.download = function(data) {
1111
console.log(data);
1212
};

‎src/modules/user/users/users.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ function Directive() {
99
}
1010

1111
// Controller
12-
Controller.$inject = ["$scope", "UsersData", "Json2CSV"];
13-
function Controller($scope, UsersData, Json2CSV) {
12+
Controller.$inject = ["$scope", "UsersData", "Json2Csv"];
13+
function Controller($scope, UsersData, Json2Csv) {
1414
$scope.users = [];
1515
$scope.currentPage = 0;
1616
$scope.getUsersPage = getUsersPage;
@@ -82,7 +82,7 @@ function Controller($scope, UsersData, Json2CSV) {
8282
});
8383

8484
// Download CSV file
85-
Json2CSV.download(cleanData);
85+
Json2Csv.download(cleanData);
8686
}
8787
}
8888

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /