# angular-user-select **Repository Path**: mirrors_rubenv/angular-user-select ## Basic Information - **Project Name**: angular-user-select - **Description**: Disable user selection dynamically. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-01-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # angular-user-select > Disable user selection dynamically. [](https://travis-ci.org/rubenv/angular-user-select) This module provides a service to disable selection on pages dynamically. You'll need this if you're adding drag/drop interactions or lasso selections. ## Installation Add angular-user-select to your project: ``` bower install --save angular-user-select ``` Add it to your HTML file: ```html ``` Reference it as a dependency for your app module: ```js angular.module('myApp', ['rt.userselect']); ``` ## Usage Put the directive on the container where selection should be disabled: ```html
``` Inject it as a service to control it: ```js angular.module('myApp').controller('TestCtrl', function ($scope, userSelect) { // Disable selection userSelect.disable(); // Enable it again userSelect.enable(); }); ``` ## License (The MIT License) Copyright (C) 2014 by Ruben Vermeersch