{"_id":"angular-ui-switch","_rev":"22-b9472442ae420c5e18c446c7e69ee3b4","name":"angular-ui-switch","description":"iOS 7 style switch directive for AngularJS","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"angular-ui-switch","version":"0.0.1","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","_id":"angular-ui-switch@0.0.1","_shasum":"6738075e22654f42cb39ae2661a19818232f79fd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"6738075e22654f42cb39ae2661a19818232f79fd","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.1.tgz","integrity":"sha512-8+Y5SbiVsGH756j7ssSlIPDYH0KoOul6g9ne0uMQPfLfCyA4Qs0LDJVhai9DiI0dtNo+OlG7inF6JEJf531WjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZfSp7dNNKzxL6av0Zqmiq4tze1plhJr4Bx4QtbCu/OgIhALEK9eXlawl76LHCCfqO1Kg6QWDhkBzueHJTq7zqTVS+"}]}},"0.0.2":{"name":"angular-ui-switch","version":"0.0.2","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","_id":"angular-ui-switch@0.0.2","_shasum":"5afe7a0f716f6c98d1b4bab7d767a1131fb9e0db","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"5afe7a0f716f6c98d1b4bab7d767a1131fb9e0db","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.2.tgz","integrity":"sha512-USYzFMNkcsK7T9RtP0ZwDj6HTvDKssy48JZX7pUSB94dw4ByuhWr6ulR38n50N7seAk94qjVZThUE6H9ZNEVog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfwMHK1h/WG91eRF+K14ayl7t+wmXJCNRXWCBPSyDXzgIhAOnsvbfvVY31DQAOkaCz1/uoYSSv3QhWRPvAenRzrRYY"}]}},"0.0.3":{"name":"angular-ui-switch","version":"0.0.3","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"d6a80d391f3b45e4fcc2a61896ca17e749912149","_id":"angular-ui-switch@0.0.3","_shasum":"7f37dd7b754e6883163c8f5d29e1d0eb9020b42a","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"7f37dd7b754e6883163c8f5d29e1d0eb9020b42a","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.3.tgz","integrity":"sha512-+U+e1pWufXjhzVRzHYe7Bgj7oEywdUIRTYTcKXJMRr2BrxkkoaPS7P9hKSdtavXJ7lv8SBSBTDGAHkHrpqNa7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEn3gLhrweApegmaRMxjk6qhKt7dBzuEAthBpIKk+6JAiEAnVOirWcReIXpW8PKFXwTFWuWuoPSsA/ZnJBPOEJk2Dk="}]}},"0.0.4":{"name":"angular-ui-switch","version":"0.0.4","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"c3dd83fd44cee626622486de5b278b8cb1e19264","_id":"angular-ui-switch@0.0.4","_shasum":"399ce93a885067a7e5d117df3a6a860de0431673","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.11.13","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"399ce93a885067a7e5d117df3a6a860de0431673","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.4.tgz","integrity":"sha512-U3dS8nokZNoI+6Mjq+5amC0W0R3ef+ZPumx1SlJ+KZC7QOFP8ptgJawOIzllb9zO8XYHJZsS5qlgJRd3cztDIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgWnaOi5nmlf+owzfCFv/PXzsmtMutKMskU7r3BLvxbAiAlzBpeHqwgkeA8s+jh2a7IH3HDOURB+8UD3QUeH02aKg=="}]}},"0.0.5":{"name":"angular-ui-switch","version":"0.0.5","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"c3dd83fd44cee626622486de5b278b8cb1e19264","_id":"angular-ui-switch@0.0.5","_shasum":"3b9ddfc82b030d84713eae4204b0d91a30b7b142","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.11.13","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"3b9ddfc82b030d84713eae4204b0d91a30b7b142","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.5.tgz","integrity":"sha512-bkeLgDwUSn7RFUYIg3awfgl7Z6xfuOBuWaOgQjf0JXkrcFhLjsGm6GylvriFJW1wpSKSraf2LvG/1KPTsTYqYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQ7JOcFlc6cZzuqo1KbQcyqyvdlOUW5JuWA2NxUioXNAiEAomyXFfvyxqvWP9qcbh+D4SHY3h+QF/8eK1HUewGJWvA="}]}},"0.0.6":{"name":"angular-ui-switch","version":"0.0.6","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"e33b1d4540cdd4463af8dcfac8481989c1674ad6","_id":"angular-ui-switch@0.0.6","_shasum":"b4a42e983bfda305fc749fccd8e5bc20457e5be1","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.11.13","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"b4a42e983bfda305fc749fccd8e5bc20457e5be1","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.6.tgz","integrity":"sha512-Sb+tKypNNj39IXLV1On29/vpLUrG0EjSc8eBMUCIdMZCM/UKvRYQDcqFQ1CyrwiJlaHPcYikFlmT7WxxRbBLsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCLEbzhy6CNop5GIYIhNS7EwlJGeOZAahTuYUsIXJGaNQIhAPlhlZCZuiFfj1TgPneka+cSNwKq9K7KmSd0Dg9BtUk2"}]}},"0.0.7":{"name":"angular-ui-switch","version":"0.0.7","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"aa7f2fda018c9814e6cc7b34e411ec33331cd615","_id":"angular-ui-switch@0.0.7","_shasum":"9221be334f8c2a3fdb206bab0f759f858b2476a8","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.11.13","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"9221be334f8c2a3fdb206bab0f759f858b2476a8","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.0.7.tgz","integrity":"sha512-B2iIwELFo327flb5qtopTJ6EEfsRY5slD8JKCkuLjzT3gzLvEwQgJjDA17x0nH07LCyfIOXqp1grUW/+MTeHSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG+nFiQS6nee0MglABczEbKuRMCuHwN2Uf2kVYFnSSz7AiBhL00Ub82lf8C9NGfydoOD0T+bpSvCqvTyyUGJta+TQA=="}]}},"0.1.0":{"name":"angular-ui-switch","version":"0.1.0","description":"iOS 7 style switch directive for AngularJS","main":"ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"edd16ab62804283aadf467f70405d092e2b30774","_id":"angular-ui-switch@0.1.0","_shasum":"856e54013287b251f2728305473ac79e0854ede7","_from":".","_npmVersion":"2.1.3","_nodeVersion":"0.11.13","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"856e54013287b251f2728305473ac79e0854ede7","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.1.0.tgz","integrity":"sha512-44RYDBW50kq4Fhx9oH9yvq/Ny9FSMc46i7g9oaiFBZ9APhh3guL5YbJBsprVVWB1Cl0C+Rf99OVsvhgVjUiW5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHg/hHNONYRUOQRayXc+Dgao5yVh33BXce6Vexcnux1gIgHpA9Wu1lFYG57vQ7ZbpyjuIUaKs2Hb9wMdV2lyov2vM="}]}},"0.1.1":{"name":"angular-ui-switch","version":"0.1.1","description":"iOS 7 style switch directive for AngularJS","main":"angular-ui-switch.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"homepage":"https://github.com/xpepermint/angular-ui-switch","devDependencies":{"minify":"^1.0.4","uglify-js":"^2.4.15"},"gitHead":"bde4711ed82d4e54c8173232e2e6fc17c2d2b3e4","_id":"angular-ui-switch@0.1.1","_shasum":"2a0eecf5e6eea6419564f1c6b6aa21f4b183201e","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"xpepermint","email":"xpepermint@gmail.com"},"maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"dist":{"shasum":"2a0eecf5e6eea6419564f1c6b6aa21f4b183201e","tarball":"https://registry.npmjs.org/angular-ui-switch/-/angular-ui-switch-0.1.1.tgz","integrity":"sha512-qN/2HHne4uXZVDZ2n1Ud4VhLnhvGKl2CrYmCS3i4/bmlIg/o6H3i1GZAfGI0nuwkSIwSJ5zkmmXxxCltAb9dqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0XR1NPl9FrNmCdK8CYdLVIi6W1AnsO/Rmcw/m88mfbQIhAL5k6STcEe7jss++E2NuiXBTM2Ujs/KH5KwGSDQEqtEr"}]}}},"readme":"# [angular](https://angularjs.org/)-ui-switch\n\nThis is a simple iOS 7 style switch directive for AngularJS. You can use this module as you would use the default HTML checkbox input element. This is a super lightweight module and you can completely change the design using just CSS.\n\nSupported by all modern browsers: Chrome, Firefox, Opera, Safari, IE8+\n\n![YoomJS](https://raw.githubusercontent.com/xpepermint/angular-ui-switch/master/logo.png)\n\nInspired by [switchery](https://github.com/abpetkov/switchery) - in angular way.\n\n## Installation\n\nDownload the package from `github`. The package is also available over `npm install angular-ui-switch` or `bower install angular-ui-switch`.\n\nInclude `javascript` and `css` files into your page.\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" ng-app=\"app\">\n<head>\n  ...\n  <link rel=\"stylesheet\" href=\"/ui-switch.min.css\"/>\n</head>\n<body>\n  ...\n  <script src=\"//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-rc.3/angular.min.js\"></script>\n  <script src=\"/ui-switch.min.js\"></script>\n</body>\n</html>\n```\n\nDeclare a dependency on the module.\n\n```js\nangular.module('myModule', ['uiSwitch']);\n```\n\nInsert the switch in your html template.\n\n```html\n<form>\n  <switch id=\"enabled\" name=\"enabled\" ng-model=\"enabled\" class=\"green\"></switch>\n  <br>{{ enabled }}\n</form>\n```\n\nAdd optional on/off text\n```html\n<form>\n  <switch id=\"enabled\" name=\"enabled\" ng-model=\"enabled\" on=\"On\" off=\"Off\" class=\"green\"></switch>\n  <br>{{ enabled }}\n</form>\n```\n\nDisabled state\n```html\n<form>\n  <switch id=\"enabled\" name=\"enabled\" ng-model=\"enabled\" disabled=\"true\" class=\"green\"></switch>\n  <br>{{ enabled }}\n</form>\n```\n\n## Design\n\nYou can completely change the design. All the magic is hidden inside two CSS classes.\n\n```css\n.switch {\n  /* frame */\n}\n.switch small {\n  /* button */\n}\n.switch.checked {\n  /* frame when enabled */\n}\n.switch.checked small {\n  /* button when enabled */\n}\n```\n\n## Publishing\n\n1. Update version in `package.json` and `bower.json`.\n\n2. Run `make compile` to minify files.\n\n3. Run `make publish` to publish.\n","maintainers":[{"name":"xpepermint","email":"xpepermint@gmail.com"}],"time":{"modified":"2022-06-13T02:59:08.276Z","created":"2014-09-27T16:05:03.600Z","0.0.1":"2014-09-27T16:05:03.600Z","0.0.2":"2014-10-01T06:02:08.440Z","0.0.3":"2014-10-01T06:50:34.526Z","0.0.4":"2014-11-10T01:55:09.566Z","0.0.5":"2014-11-10T01:59:48.784Z","0.0.6":"2014-11-26T15:38:39.497Z","0.0.7":"2015-02-28T08:47:22.184Z","0.1.0":"2015-03-13T17:45:26.810Z","0.1.1":"2015-09-15T20:51:54.850Z"},"homepage":"https://github.com/xpepermint/angular-ui-switch","keywords":["angular","angularjs","ui","directive","switch","on","off","button","checkbox","form"],"repository":{"type":"git","url":"git://github.com/xpepermint/angular-ui-switch.git"},"author":{"name":"xpeper","email":"xpepermint@gmail.com"},"bugs":{"url":"https://github.com/xpepermint/angular-ui-switch/issues"},"license":"MIT","readmeFilename":"README.md","users":{"ohom":true}}