source: main/trunk/model-interfaces-dev/heritage-nz/iframe/heritage-nz-dl_files/filters.js@ 32796

Last change on this file since 32796 was 32796, checked in by davidb, 5 years ago

Initial set of files to provide look and feel of Heritage NZ site, plus SVN clickable map in an iframe

  • Property svn:executable set to *
File size: 323 bytes
Line 
1angular.module('filters')
2 .filter('titlecase', function () {
3 return function (s) {
4 s = (s === undefined || s === null) ? '' : s;
5 return s.toString().toLowerCase().replace(/\b([a-z])/g, function (ch) {
6 return ch.toUpperCase();
7 });
8 };
9 });
Note: See TracBrowser for help on using the repository browser.