1.3.0 • Published 8 years ago
sanji-exception-ui v1.3.0
sanji-exception-ui
Sanji exception service is part of Sanji UI framework and also it is a angular module. It can catch application exception gracefully.
Dependencies
Installation
Sanji exception service is based on es6 + webpack to development and embrace npm to install it.
npm install sanji-exception-ui --save
How to use
You need to include module first.
angular.module('webapp', ['sanji.exception'])
and then use exception
as DI service. exception
service accounts for
catching application exception gracefully.
class AppController {
constructor($http, exception) {
$http.get('/resources')
.then(res => {
console.log('get resources success');
})
.catch(exception.catcher('get resources fail'));
}
}
AppController.$inject = ['$http', 'exception'];
References
Contact
Author: Zack Yang © 2015
Support: if you find any problems with this library, open issue on Github
1.3.0
8 years ago
1.2.9
9 years ago
1.2.8
9 years ago
1.2.7
9 years ago
1.2.6
9 years ago
1.2.5
9 years ago
1.2.4
9 years ago
1.2.3
9 years ago
1.2.2
9 years ago
1.2.1
9 years ago
1.2.0
9 years ago
1.1.1
10 years ago
1.1.0
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago