{"action":"created","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1281","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1281/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1281/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1281/events","html_url":"https://github.com/angular-translate/angular-translate/issues/1281","id":113505259,"number":1281,"title":"Why there is a difference between $translate directive and filter?","user":{"login":"huyph","id":3280795,"avatar_url":"https://avatars.githubusercontent.com/u/3280795?v=3","gravatar_id":"","url":"https://api.github.com/users/huyph","html_url":"https://github.com/huyph","followers_url":"https://api.github.com/users/huyph/followers","following_url":"https://api.github.com/users/huyph/following{/other_user}","gists_url":"https://api.github.com/users/huyph/gists{/gist_id}","starred_url":"https://api.github.com/users/huyph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huyph/subscriptions","organizations_url":"https://api.github.com/users/huyph/orgs","repos_url":"https://api.github.com/users/huyph/repos","events_url":"https://api.github.com/users/huyph/events{/privacy}","received_events_url":"https://api.github.com/users/huyph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-27T04:40:35Z","updated_at":"2015-10-27T20:58:15Z","closed_at":null,"body":"I noticed that there is a difference between $translate service and $translate filter.\r\n\r\nThe original text from json file is 'Cities & Suburbs'. And the results in HTML are different as shown below: \r\n\r\n<img width=\"306\" alt=\"screen shot 2015-10-27 at 3 37 49 pm\" src=\"https://cloud.githubusercontent.com/assets/3280795/10749655/01571612-7cc1-11e5-9f18-c2fe2252b2c1.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/comments/151641569","html_url":"https://github.com/angular-translate/angular-translate/issues/1281#issuecomment-151641569","issue_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1281","id":151641569,"user":{"login":"tspaeth","id":5180973,"avatar_url":"https://avatars.githubusercontent.com/u/5180973?v=3","gravatar_id":"","url":"https://api.github.com/users/tspaeth","html_url":"https://github.com/tspaeth","followers_url":"https://api.github.com/users/tspaeth/followers","following_url":"https://api.github.com/users/tspaeth/following{/other_user}","gists_url":"https://api.github.com/users/tspaeth/gists{/gist_id}","starred_url":"https://api.github.com/users/tspaeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tspaeth/subscriptions","organizations_url":"https://api.github.com/users/tspaeth/orgs","repos_url":"https://api.github.com/users/tspaeth/repos","events_url":"https://api.github.com/users/tspaeth/events{/privacy}","received_events_url":"https://api.github.com/users/tspaeth/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T20:58:15Z","updated_at":"2015-10-27T20:58:15Z","body":"Please have a look at the chapters in the documentation http://angular-translate.github.io/docs/#/guide/04_using-translate-filter and  http://angular-translate.github.io/docs/#/guide/03_using-translate-service \r\n\r\nregarding the differences in between these two usage scenarios. \r\nPlease note that sanitizing and configuring in case of the filter will probably lead to this differences.\r\nSee http://angular-translate.github.io/docs/#/guide/19_security"}}