Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-switchery

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-switchery - npm Package Compare versions

Comparing version 0.7.1 to 15.0.4

esm2020/angular-switchery.mjs

112

package.json
{
"name": "angular-switchery",
"version": "0.7.1",
"description": "Angular Switchery, an Angular library",
"main": "./bundles/angular-switchery.umd.js",
"scripts": {
"test": "node ./tasks/test",
"build": "node ./tasks/build",
"g": "node ./node_modules/angular-librarian",
"lint": "tslint ./src/**/*.ts",
"postbuild": "rimraf build",
"prebuild": "rimraf dist out-tsc",
"pretagVersion": "npm run build",
"start": "webpack-dev-server --open --config ./webpack/webpack.dev.js",
"tagVersion": "cd dist && np"
"version": "15.0.4",
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/stevermeister/angular-switchery"
"dependencies": {
"tslib": "^2.3.0"
},
"keywords": [
"angular",
"switchery"
],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/stevermeister/angular-switchery/issues"
"module": "fesm2015/angular-switchery.mjs",
"es2020": "fesm2020/angular-switchery.mjs",
"esm2020": "esm2020/angular-switchery.mjs",
"fesm2020": "fesm2020/angular-switchery.mjs",
"fesm2015": "fesm2015/angular-switchery.mjs",
"typings": "index.d.ts",
"exports": {
"./package.json": {
"default": "./package.json"
},
".": {
"types": "./index.d.ts",
"esm2020": "./esm2020/angular-switchery.mjs",
"es2020": "./fesm2020/angular-switchery.mjs",
"es2015": "./fesm2015/angular-switchery.mjs",
"node": "./fesm2015/angular-switchery.mjs",
"default": "./fesm2020/angular-switchery.mjs"
}
},
"homepage": "https://github.com/stevermeister/angular-switchery#readme",
"devDependencies": {
"angular-librarian": "1.0.0-beta.5",
"@angular/compiler-cli": "^4.0.0",
"@types/jasmine": "2.5.38",
"@types/node": "^6.0.42",
"angular2-template-loader": "0.6.0",
"awesome-typescript-loader": "^3.0.0",
"codelyzer": "~2.0.0-beta.1",
"css-loader": "^0.26.1",
"css-to-string-loader": "^0.1.3",
"extract-text-webpack-plugin": "^2.1.0",
"file-loader": "^0.8.5",
"fs-extra": "^2.1.2",
"html-webpack-plugin": "^2.19.0",
"istanbul-instrumenter-loader": "^1.2.0",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "^1.0.2",
"karma-phantomjs-launcher": "^1.0.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^2.0.0",
"node-sass": "^4.1.1",
"np": "^2.12.0",
"phantomjs-prebuilt": "^2.1.7",
"raw-loader": "^0.5.1",
"rimraf": "^2.5.3",
"rollup": "0.43.0",
"rollup-plugin-sourcemaps": "0.4.2",
"rollup-plugin-uglify": "2.0.1",
"sass-loader": "^4.0.1",
"script-loader": "^0.7.0",
"source-map-loader": "^0.1.5",
"style-loader": "^0.13.1",
"tslint": "^4.0.2",
"tslint-loader": "^3.3.0",
"typescript": "~2.2.1",
"typings": "^0.8.1",
"url-loader": "^0.5.7",
"webpack": "^2.2.0",
"webpack-dev-server": "^2.2.0",
"webpack-merge": "^0.14.0",
"webpack-node-externals": "^1.5.4"
},
"module": "./angular-switchery.es5.js",
"es2015": "./angular-switchery.js",
"typings": "./angular-switchery.d.ts",
"dependencies": {
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"core-js": "^2.4.1",
"rxjs": "^5.0.1",
"zone.js": "^0.8.7"
}
}
"sideEffects": false
}

@@ -7,2 +7,4 @@ # Angular Switchery

[Demo](https://stackblitz.com/edit/angular-fcr9gv)
## Description

@@ -14,3 +16,3 @@

![Preview](http://i.imgur.com/0PcuTbO.jpg)
![screen shot 2017-08-25 at 15 15 15](https://user-images.githubusercontent.com/1526680/29715591-4ed60646-89a8-11e7-8d6b-2712e6dd4e85.png)

@@ -60,34 +62,17 @@ ## Installation

##### NgModel
## Development
```html
<angular-switchery [(ngModel)]="swticherModel"></angular-switchery>
<angular-switchery [(ngModel)]="swticherModel"></angular-switchery>
Switcher: {{swticherModel? 'ON' : 'OFF'}}
```
If you've decided to go in development mode and tweak all of this a bit, there are few things you should do.
##### Reactive approach
After you clone the repository, do this in your terminal ([NPM](http://npmjs.org/) required):
```shell
$ npm install
```html
<angular-switchery #f="ngForm" [formControl]="switcheryControl"></angular-switchery>
switcheryControl.value : {{f.value}}
```
## License
The MIT License (MIT)
Copyright (c) 2017 Stepan Suvorov
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
You can play with all the examples [here](https://stackblitz.com/edit/angular-fcr9gv)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc