{"action":"closed","issue":{"url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/152","repository_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize","labels_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/152/comments","events_url":"https://api.github.com/repos/InfomediaLtd/angular2-materialize/issues/152/events","html_url":"https://github.com/InfomediaLtd/angular2-materialize/issues/152","id":186836744,"number":152,"title":"Couldn't find materialize function ''leanModal' ","user":{"login":"ziracmo","id":12600085,"avatar_url":"https://avatars.githubusercontent.com/u/12600085?v=3","gravatar_id":"","url":"https://api.github.com/users/ziracmo","html_url":"https://github.com/ziracmo","followers_url":"https://api.github.com/users/ziracmo/followers","following_url":"https://api.github.com/users/ziracmo/following{/other_user}","gists_url":"https://api.github.com/users/ziracmo/gists{/gist_id}","starred_url":"https://api.github.com/users/ziracmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziracmo/subscriptions","organizations_url":"https://api.github.com/users/ziracmo/orgs","repos_url":"https://api.github.com/users/ziracmo/repos","events_url":"https://api.github.com/users/ziracmo/events{/privacy}","received_events_url":"https://api.github.com/users/ziracmo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-02T15:38:45Z","updated_at":"2016-11-04T06:07:24Z","closed_at":"2016-11-04T06:07:24Z","body":"Hi everyone !\r\n\r\nI'm actually testing my application with angular 2.1.2. And i'm trying to query the button from my html component. I have angular2-materialize 6.0.0\r\nOr an error appear :\r\n```\r\n\tError: Error in ./DescriptorComponent class DescriptorComponent - inline template:119:14 caused by: Couldn't find materialize function ''leanModal' on element or the global Materialize object.\r\n\tError: Couldn't find materialize function ''leanModal' on element or the global Materialize object\r\n```\r\n\r\nThe html :\r\n ```\r\n<button class=\"btn-floating white tooltipeed modal-trigger\" materialize=\"leanModal\" data-target=\"editTrame\" [disabled]=\"!user.permissions[env.name].write\"\r\n                    [materializeParams]=\"[{dismissible: false}]\"><i class=\"material-icons light-green-text\">edit</i>\r\n            </button>\r\n```\r\n\r\nThe query from the test :\r\n\r\n`        let buttons = fixture.debugElement.queryAll(By.css('button'));\r\n`\r\n\r\nI've already imports The MaterializeModule into my tests i d'ont know what to do to ovoid this error.\r\n\r\nThanks for your help.\r\n"}}
{"actor":{"display_login":"rubyboy"}}