@ovh-ux/ng-ovh-user-pref

2.1.1 • Public • Published

ng-ovh-user-pref

An AngularJS service to create/get/delete user preferences.

npm version Downloads Dependencies Dev Dependencies

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

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

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i @ovh-ux/ng-ovh-user-pref

Weekly Downloads

1

Version

2.1.1

License

BSD-3-Clause

Unpacked Size

301 kB

Total Files

14

Last publish

Collaborators

  • jisay
  • blary_jp
  • antleblanc
  • cbourgois
  • ovh-ux-cds
  • lizardk
  • ovh
  • marie-j