Angular Snippets

Toggle an element with ngShow and ngHide with a boolean

Limit to two decimal places

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

One Comment

Jesse Martin August 22, 2016 Reply

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 /

Leave a Reply