{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material/issues/5984","repository_url":"https://api.github.com/repos/angular/material","labels_url":"https://api.github.com/repos/angular/material/issues/5984/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/5984/comments","events_url":"https://api.github.com/repos/angular/material/issues/5984/events","html_url":"https://github.com/angular/material/issues/5984","id":119484459,"number":5984,"title":"directive for optional remove layout attribute","user":{"login":"Stefan2505","id":11771173,"avatar_url":"https://avatars.githubusercontent.com/u/11771173?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan2505","html_url":"https://github.com/Stefan2505","followers_url":"https://api.github.com/users/Stefan2505/followers","following_url":"https://api.github.com/users/Stefan2505/following{/other_user}","gists_url":"https://api.github.com/users/Stefan2505/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan2505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan2505/subscriptions","organizations_url":"https://api.github.com/users/Stefan2505/orgs","repos_url":"https://api.github.com/users/Stefan2505/repos","events_url":"https://api.github.com/users/Stefan2505/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan2505/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material/labels/P2%20-%20Planned%20Work%20/%20Team%20PRs","name":"P2 - Planned Work / Team PRs","color":"207de5"},{"url":"https://api.github.com/repos/angular/material/labels/ui:%20flexbox","name":"ui: flexbox","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/49","html_url":"https://github.com/angular/material/milestones/Deprecated","labels_url":"https://api.github.com/repos/angular/material/milestones/49/labels","id":1717295,"number":49,"title":"Deprecated","description":"Issues and PRs that are considered old, stale, deprecated, not-core, or too risky.","creator":{"login":"ThomasBurleson","id":210413,"avatar_url":"https://avatars.githubusercontent.com/u/210413?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasBurleson","html_url":"https://github.com/ThomasBurleson","followers_url":"https://api.github.com/users/ThomasBurleson/followers","following_url":"https://api.github.com/users/ThomasBurleson/following{/other_user}","gists_url":"https://api.github.com/users/ThomasBurleson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasBurleson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasBurleson/subscriptions","organizations_url":"https://api.github.com/users/ThomasBurleson/orgs","repos_url":"https://api.github.com/users/ThomasBurleson/repos","events_url":"https://api.github.com/users/ThomasBurleson/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasBurleson/received_events","type":"User","site_admin":false},"open_issues":89,"closed_issues":1455,"state":"open","created_at":"2016-04-19T15:37:31Z","updated_at":"2016-06-02T01:55:40Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-11-30T12:40:54Z","updated_at":"2016-06-02T01:55:39Z","closed_at":"2016-06-02T01:55:39Z","body":"1.0.0-rc5 does not remove layout attribute anymore (https://github.com/angular/material/commit/7cb035d9). Its a cool improvement for better DOM structure, but generates in my code other problems. \r\n\r\nI create a directive for removing the layout attribute:\r\n```\r\n(function(){\r\n    'use strict';\r\n\r\n    angular\r\n        .module('ngMaterial')\r\n        .directive('removeLayoutAttr',removeLayoutAttr);\r\n\r\n    removeLayoutAttr.$inject = [];\r\n\r\n    function removeLayoutAttr() {\r\n\r\n        var directive = {\r\n            link: function(scope, element, attrs) {\r\n                element.removeAttr('layout');\r\n            },\r\n            restrict: 'A'\r\n        };\r\n\r\n        return directive;\r\n    }\r\n})();\r\n```\r\nand it can be used like this:  ```<div remove-layout-attr></div>```\r\n\r\nIt would be great if this directive will be integrated in the future releases."}}
{"actor":{"display_login":"ThomasBurleson"}}