From ba5b4b8047adb03532621f5ffdca7f65cebe4f2f Mon Sep 17 00:00:00 2001 From: Leonardo Zizzamia Date: Tue, 9 Dec 2014 23:04:00 -0800 Subject: [PATCH] Wrote docs filterInt #38 --- docs/server.js | 8 +++++ docs/static/app.js | 9 ++++++ docs/template/filter/clean-field-name.html | 2 +- docs/template/filter/filter-int.html | 35 ++++++++++++++++++++++ docs/template/index.html | 3 ++ 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 docs/template/filter/filter-int.html diff --git a/docs/server.js b/docs/server.js index 5bec4fe0..29670dbc 100644 --- a/docs/server.js +++ b/docs/server.js @@ -94,6 +94,14 @@ app.get('/table-server-side/index.html', function(req, res){ res.render('template/table-server-side/index.html', { base: base, ngTasty: ngTasty }); }); +app.get('/filter/filter-int', function(req, res){ + title = '#ngTasty - AngularJS filter Integer'; + res.render('template/index.html', { base: base, ngTasty: ngTasty, title:title }); +}); +app.get('/filter/filter-int.html', function(req, res){ + res.render('template/filter/filter-int.html', { base: base, ngTasty: ngTasty }); +}); + app.get('/filter/range', function(req, res){ title = '#ngTasty - AngularJS range filter'; res.render('template/index.html', { base: base, ngTasty: ngTasty, title:title }); diff --git a/docs/static/app.js b/docs/static/app.js index aa001921..99463d65 100644 --- a/docs/static/app.js +++ b/docs/static/app.js @@ -26,6 +26,11 @@ angular.module('myApp', [ templateUrl: 'table-server-side/index.html', title: '#ngTasty - AngularJS server side table directive' }) + .when('/filter/filter-int', { + controller: 'FilterCtrl', + templateUrl: 'filter/filter-int.html', + title: '#ngTasty - AngularJS filter Integer' + }) .when('/filter/range', { controller: 'FilterCtrl', templateUrl: 'filter/range.html', @@ -341,6 +346,10 @@ angular.module('myApp.controllers', []) $rootScope.page = 'range'; + $scope.age = 27; + $scope.text = 'Ciao'; + $scope.ageBytext = '22'; + $scope.start = 1; $scope.stop = 10; $scope.step = 2; diff --git a/docs/template/filter/clean-field-name.html b/docs/template/filter/clean-field-name.html index 8600fea9..4d2a2ae1 100644 --- a/docs/template/filter/clean-field-name.html +++ b/docs/template/filter/clean-field-name.html @@ -1,4 +1,4 @@ \ No newline at end of file diff --git a/docs/template/filter/filter-int.html b/docs/template/filter/filter-int.html new file mode 100644 index 00000000..4c02d865 --- /dev/null +++ b/docs/template/filter/filter-int.html @@ -0,0 +1,35 @@ +<%= include ../title-inside.html %> + +
+
+

+

+

+
+
+

An Integer filter.

+
+
+ + +
+

+

+

+
+
+ +
+
$scope.age = 27;
+$scope.text = 'Ciao';
+$scope.ageBytext = '22';
+
+
+
+
+
\ No newline at end of file diff --git a/docs/template/index.html b/docs/template/index.html index f0fb59b4..a5f1273c 100644 --- a/docs/template/index.html +++ b/docs/template/index.html @@ -61,6 +61,9 @@

Filter

+
  • + Filter Int +
  • Range