{"action":"created","issue":{"url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/183","repository_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize","labels_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/183/comments","events_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/183/events","html_url":"https://github.com/InfomediaLtd/angular2-materialize/issues/183","id":192425110,"number":183,"title":"MaterializeAction Error","user":{"login":"AndrewKralovec","id":6210337,"avatar_url":"https://avatars.githubusercontent.com/u/6210337?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewKralovec","html_url":"https://github.com/AndrewKralovec","followers_url":"https://api.github.com/users/AndrewKralovec/followers","following_url":"https://api.github.com/users/AndrewKralovec/following{/other_user}","gists_url":"https://api.github.com/users/AndrewKralovec/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewKralovec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewKralovec/subscriptions","organizations_url":"https://api.github.com/users/AndrewKralovec/orgs","repos_url":"https://api.github.com/users/AndrewKralovec/repos","events_url":"https://api.github.com/users/AndrewKralovec/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewKralovec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-29T22:51:13Z","updated_at":"2016-12-26T07:28:56Z","closed_at":null,"body":"I'm trying to add a Modal to my dashboard but when i follow the instructions online, it tells me MaterializeAction has no export member. \r\n\r\nError\r\n`node_modules/angular2-materialize/dist/index\"' has no exported member 'MaterializeAction'.`\r\nWhen i look at the index file i see no materialize action\r\n\r\nindex.d.ts\r\n```\r\nexport { MaterializeDirective } from \"./materialize-directive\";\r\nexport { MaterializeModule } from \"./materialize-module\";\r\nexport declare function toast(...args: any[]): void;\r\n```\r\n\r\nComponent.html \r\n```\r\n        <!-- Modal Trigger -->\r\n        <a class=\"waves-effect waves-light btn modal-trigger\" (click)=\"openModal()\">Modal</a>\r\n        \r\n        <!-- Modal Structure -->\r\n        <div id=\"modal1\" class=\"modal bottom-sheet\" materialize=\"modal\" [materializeParams]=\"[{dismissible: false}]\" [materializeActions]=\"modalActions\">\r\n            <div class=\"modal-content\">\r\n                <h4>Modal Header</h4>\r\n                <p>A bunch of text</p>\r\n            </div>\r\n            <div class=\"modal-footer\">\r\n                <a class=\"waves-effect waves-green btn-flat\" (click)=\"closeModal()\">Close</a>\r\n                <a class=\"modal-action modal-close waves-effect waves-green btn-flat\">Agree</a>\r\n            </div>\r\n        </div>\r\n```\r\n\r\nComponent.ts \r\n```\r\n\r\nimport { Component, EventEmitter, OnInit, AfterViewInit } from '@angular/core';\r\nimport { DashboardService } from './dashboard.service';\r\nimport 'rxjs/add/operator/map'; \r\nimport {MaterializeAction} from 'angular2-materialize';\r\n\r\n@Component({\r\n    selector: 'dashboard-home',\r\n    providers:[DashboardService],\r\n    templateUrl: './dashboard.component.html',\r\n    styleUrls: ['./dashboard.component.css']\r\n})\r\nexport class DashboardComponent implements OnInit {\r\n    private user:any ; \r\n    constructor(private dds:DashboardService){\r\n        \r\n    }\r\n    ngOnInit(){\r\n        this.ds.getUserInfo()\r\n        .subscribe((response:any) => {\r\n            console.log(\"Response:\");\r\n            console.log(response);\r\n            this.user = response ; \r\n        }, (error:any) => {\r\n            console.log(\"Error:\");\r\n            console.log(error);\r\n        },() => \r\n            console.log(\"Request Finished\")\r\n        );\r\n    }\r\n    modalActions = new EventEmitter<string|MaterializeAction>();\r\n    openModal() {\r\n        this.modalActions.emit({action:\"modal\",params:['open']});\r\n    }\r\n    closeModal() {\r\n        this.modalActions.emit({action:\"modal\",params:['close']});\r\n    }\r\n}\r\n\r\n```\r\npackage.json\r\n\r\n```\r\n    \"angular2-materialize\": \"^5.2.1\",\r\n    \"materialize-css\": \"^0.97.8\",\r\n    \"jquery\": \"^2.2.4\",\r\n    \"hammerjs\": \"^2.0.8\",\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/comments/269176495","html_url":"https://github.com/InfomediaLtd/angular2-materialize/issues/183#issuecomment-269176495","issue_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/183","id":269176495,"user":{"login":"rubyboy","id":1908166,"avatar_url":"https://avatars.githubusercontent.com/u/1908166?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyboy","html_url":"https://github.com/rubyboy","followers_url":"https://api.github.com/users/rubyboy/followers","following_url":"https://api.github.com/users/rubyboy/following{/other_user}","gists_url":"https://api.github.com/users/rubyboy/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyboy/subscriptions","organizations_url":"https://api.github.com/users/rubyboy/orgs","repos_url":"https://api.github.com/users/rubyboy/repos","events_url":"https://api.github.com/users/rubyboy/events{/privacy}","received_events_url":"https://api.github.com/users/rubyboy/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T07:28:56Z","updated_at":"2016-12-26T07:28:56Z","body":"@AndrewKralovec is this issue still relevant? Can we close it? Thanks."}}
{"actor":{"display_login":"rubyboy"}}