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+$/;`