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

ng2-material-select

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-material-select - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

README.md

6

dist/src/decorators/selectable.js

@@ -15,8 +15,4 @@ "use strict";

};
const isSelected = function (item) {
return this.selected.indexOf(item) >= 0;
};
Object.assign(target.prototype, {
toggle: toggle,
isSelected: isSelected
toggle
});

@@ -23,0 +19,0 @@ };

@@ -22,5 +22,4 @@ "use strict";

let Ng2Select = class Ng2Select extends accessor_1.SelectAccessor {
constructor(renderer) {
super();
this.renderer = renderer;
constructor() {
super(...arguments);
this.options = [];

@@ -50,2 +49,10 @@ this.multiple = false;

}
isSelected(item) {
if (this.multiple) {
return this.selected.indexOf(item) >= 0;
}
else {
return this.value === item;
}
}
ngOnInit() {

@@ -68,2 +75,3 @@ const state = this.dropdown.state;

});
console.log(this.selected);
}

@@ -107,5 +115,5 @@ };

selectable_1.Selectable(),
__metadata('design:paramtypes', [core_1.Renderer])
__metadata('design:paramtypes', [])
], Ng2Select);
exports.Ng2Select = Ng2Select;
//# sourceMappingURL=ng2-select.js.map

@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

root["ng2-select"] = factory(root["@angular/core"], root["@angular/forms"], root["@angular/common"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_14__) {
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_15__) {
return /******/ (function(modules) { // webpackBootstrap

@@ -60,3 +60,3 @@ /******/ // The module cache

__webpack_require__(1);
__webpack_require__(14);
__webpack_require__(15);
module.exports = __webpack_require__(6);

@@ -81,6 +81,6 @@

/***/ 14:
/***/ 15:
/***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_14__;
module.exports = __WEBPACK_EXTERNAL_MODULE_15__;

@@ -87,0 +87,0 @@ /***/ }

{
"name": "ng2-material-select",
"version": "0.1.4",
"version": "0.1.5",
"description": "Angular 2 material-like Select Component",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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