@ovh-ux/ng-ovh-user-pref
v2.1.2
Published
An AngularJS service to create/get/delete user preferences
Downloads
2,029
Readme
ng-ovh-user-pref
An AngularJS service to create/get/delete user preferences.
Install
$ yarn add @ovh-ux/ng-ovh-user-pref
Usage
import angular from 'angular';
import ngOvhUserPref from '@ovh-ux/ng-ovh-user-pref';
angular.module('myApp', [ngOvhUserPref]);
- Create an user preference on api.ovh.com.
- Merge an existing user preference on api.ovh.com.
- Get all keys of user preference for one user.
- Get user preference for a specific key.
- Delete an user preference for a specific key.
Format:
- The format of a key must be in uppercase, words separated by underscores
_
. - Key name sample: (
COMMON_LANG
,WEB_DOMAIN_FAVORITES
,DEDICATED_DASHBOARD
, ...).
Test
$ yarn test
Related
- ovh-api-services - Contains all AngularJS $resource for OVHcloud API
Contributing
Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.
License
BSD-3-Clause © OVH SAS