{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/14539","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/14539/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/14539/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/14539/events","html_url":"https://github.com/angular/angular.js/issues/14539","id":151844861,"number":14539,"title":"Leading/trailing whitespace in directive attributes with scope \"&\" is lost","user":{"login":"ChristopherBrix","id":5114411,"avatar_url":"https://avatars.githubusercontent.com/u/5114411?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristopherBrix","html_url":"https://github.com/ChristopherBrix","followers_url":"https://api.github.com/users/ChristopherBrix/followers","following_url":"https://api.github.com/users/ChristopherBrix/following{/other_user}","gists_url":"https://api.github.com/users/ChristopherBrix/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristopherBrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristopherBrix/subscriptions","organizations_url":"https://api.github.com/users/ChristopherBrix/orgs","repos_url":"https://api.github.com/users/ChristopherBrix/repos","events_url":"https://api.github.com/users/ChristopherBrix/events{/privacy}","received_events_url":"https://api.github.com/users/ChristopherBrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T11:23:03Z","updated_at":"2016-04-29T11:23:03Z","closed_at":null,"body":"When I create a directive with an attribute which scope is defined with `&`, leading and trailing whitespaces are lost ([fiddle](http://jsfiddle.net/ChristopherBrix/1js02n8w/4/)).\r\n\r\nWhile it can be circumvented by creating a variable and passing the evaluated variable as the value (using `attribute={{variable}}`, see the fiddle), this looks like a bug to me.\r\n\r\nThe fiddle uses Angular 1.4.9, but it's still present in the current snapshot v1.5.6-build.4785+sha.707664a"}}