ng-error

v1.0.2
Angular ngError directive
angular ngError ng-error error directive

ng-error

Angular ngError directive

Install via bower and usage in browser

bower install ng-error --save

Add a <script> to your html

<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/ng-error/ng-error.js"></script>
...
<script>
// add 'ngError' as dependency to your module
var yourModule = angular.module("yourModule", ['ngError']);
</script>

Install via npm and usage with browserify

npm install ng-error --save
// Require it in your module
require('ng-error/ng-error');

// Then use with a angular
var yourModule = angular.module('yourModule', ['ngError']);

Usage

<!-- You can add the `ng-error` directive in `<img>` tags -->
<img src="beautifulImage.jpg" ng-error="someFunction()" alt="" />
npm i ng-error

Metadata

Downloads

Maintainers