Angular Snippets

Toggle an element with ngShow and ngHide with a boolean

Limit to two decimal places
https://jsfiddle.net/fauverism/y6gv8v2e/
https://github.com/angular-ui/ui-mask/blob/master/demo/index.html
http://plnkr.co/edit/u9mJqDH8UpwxDnOv8gZL?p=preview

ng-pattern to limit input to only numbers (This is a great alternative to IE versions that don’t support ``)
`$scope.onlyNumbers = /^\d+$/;`

One thought on “Angular Snippets

  1. If you are open to any AngularJS Web Dev Opportunities in the Philly area, or know of anyone looking for this type of work, please reach out. I don’t normally contact people through these mediums, but it seems harder and harder to find Web Devs that are promoting themselves and their work on the typical job boards. Regards, Jesse Martin / Modis IT Recruiting / 303-474-3234 / jesse.martin@modis.com

Leave a Reply

Your email address will not be published. Required fields are marked *