🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ng2-material-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-material-dropdown - npm Package Compare versions

Comparing version

to
0.0.4

10

dist/ng2-dropdown.bundle.js

@@ -84,5 +84,7 @@ (function webpackUniversalModuleDefinition(root, factory) {

var ng2_dropdown_menu_1 = __webpack_require__(9);
var ng2_dropdown_state_1 = __webpack_require__(11);
var styles = [__webpack_require__(19).toString()], template = __webpack_require__(21);
var Ng2Dropdown = (function () {
function Ng2Dropdown() {
this.onItemClicked = new core_1.EventEmitter();
}

@@ -94,2 +96,6 @@ Ng2Dropdown.prototype.toggleMenu = function () {

};
Ng2Dropdown.prototype.ngOnInit = function () {
var _this = this;
ng2_dropdown_state_1.dropdownState.onItemClicked.subscribe(function (item) { return _this.onItemClicked.emit(item); });
};
Ng2Dropdown.prototype.ngAfterContentInit = function () {

@@ -109,2 +115,6 @@ var _this = this;

], Ng2Dropdown.prototype, "menu", void 0);
__decorate([
core_1.Output(),
__metadata('design:type', core_1.EventEmitter)
], Ng2Dropdown.prototype, "onItemClicked", void 0);
Ng2Dropdown = __decorate([

@@ -111,0 +121,0 @@ core_1.Component({

2

package.json
{
"name": "ng2-material-dropdown",
"version": "0.0.3",
"version": "0.0.4",
"description": "Angular 2 material-like Dropdown Component",

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

@@ -53,3 +53,7 @@ # Angular2 Dropdown Component

#### ng2-dropdown
`onItemClicked()` - `[(onItemClicked($event)]` : event that emits the item clicked on
#### ng2-menu-item
`preventClose` - `[?boolean]` : if present, this attribute prevents the menu to hide when the menu item is clicked

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet