mean-date-filter
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "mean-date-filter", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Filter with start and end dates. Includes datepickers and quick select buttons.", | ||
@@ -5,0 +5,0 @@ "author": { |
'use strict'; | ||
angular.module('mean.date-filter').controller('DateFilterController', ['$scope', 'Global', 'DateFilter', | ||
angular.module('mean.mean-date-filter').controller('DateFilterController', ['$scope', 'Global', 'DateFilter', | ||
function($scope, Global, DateFilter) { | ||
@@ -5,0 +5,0 @@ $scope.global = Global; |
'use strict'; | ||
angular.module('mean.mean-date-filter').directive('meanDateFilter', ['DateFilter', | ||
angular.module('mean.mean-date-filter').directive('meanDateFilter', ['MeanDateFilter', | ||
function(DateFilter) { | ||
function(MeanDateFilter) { | ||
return { | ||
@@ -78,7 +78,7 @@ restrict: 'A', | ||
$scope.save = function() { | ||
DateFilter.setDateFilter($scope.startDate, $scope.endDate, $scope.mode, function(data) {}); | ||
MeanDateFilter.setDateFilter($scope.startDate, $scope.endDate, $scope.mode, function(data) {}); | ||
}; | ||
var load = function() { | ||
DateFilter.getDateFilter(function(data) { | ||
MeanDateFilter.getDateFilter(function(data) { | ||
if (typeof data.startDate !== 'undefined') { | ||
@@ -85,0 +85,0 @@ $scope.startDate = moment(data.startDate).toDate(); |
'use strict'; | ||
angular.module('mean.mean-date-filter').config(['$stateProvider', | ||
function($stateProvider) { | ||
} | ||
]); |
'use strict'; | ||
angular.module('mean.mean-date-filter').factory('DateFilter', ['$http', | ||
angular.module('mean.mean-date-filter').factory('MeanDateFilter', ['$http', | ||
function($http) { | ||
@@ -5,0 +5,0 @@ var setDateFilter = function(startDate, endDate, mode, callback) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12592
17
258