{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/15097","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/15097/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/15097/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/15097/events","html_url":"https://github.com/angular/angular.js/issues/15097","id":175280302,"number":15097,"title":"Let resolveAs accept empty string in order to map properties directly","user":{"login":"fmunafokion","id":10862927,"avatar_url":"https://avatars.githubusercontent.com/u/10862927?v=3","gravatar_id":"","url":"https://api.github.com/users/fmunafokion","html_url":"https://github.com/fmunafokion","followers_url":"https://api.github.com/users/fmunafokion/followers","following_url":"https://api.github.com/users/fmunafokion/following{/other_user}","gists_url":"https://api.github.com/users/fmunafokion/gists{/gist_id}","starred_url":"https://api.github.com/users/fmunafokion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmunafokion/subscriptions","organizations_url":"https://api.github.com/users/fmunafokion/orgs","repos_url":"https://api.github.com/users/fmunafokion/repos","events_url":"https://api.github.com/users/fmunafokion/events{/privacy}","received_events_url":"https://api.github.com/users/fmunafokion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20ngRoute","name":"component: ngRoute","color":"DDDDDD"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20low","name":"frequency: low","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity:%20inconvenient","name":"severity: inconvenient","color":"006b75"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20feature","name":"type: feature","color":"00a606"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/35","html_url":"https://github.com/angular/angular.js/milestones/Purgatory","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/35/labels","id":526241,"number":35,"title":"Purgatory","description":"This milestone is for issues and PRs that weren't accepted yet and we are waiting for more info from the submitter.\r\n\r\nFor issues this typically means that we weren't able to reproduce the issue or we haven't decided yet if a feature request is a good idea at all.\r\n\r\nFor PRs this means that the PR still needs a lot of work and we might not even be interested in merging it because it looks like a non-core feature. We are still waiting for more discussion within the team or more info from the contributor before making the final decision.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":35,"closed_issues":854,"state":"open","created_at":"2014-01-04T01:20:50Z","updated_at":"2016-09-06T20:49:57Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-09-06T15:39:35Z","updated_at":"2016-09-07T10:33:04Z","closed_at":null,"body":"Why not allow such a thing?\r\n\r\n```html\r\n    .when('/home', {\r\n        templateUrl : 'views/home.html',\r\n        resolveAs : '',\r\n        resolve: {\r\n            data: ['myService', function (myService) {\r\n            \treturn myService.getHomeData();\r\n            }]\r\n        }\r\n    })\r\n```\r\n\r\n```html\r\n<p>Hi, here we are with the home data: {{data}}</p>\r\n```\r\n\r\nThanks,\r\nFilippo"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/245240909","html_url":"https://github.com/angular/angular.js/issues/15097#issuecomment-245240909","issue_url":"https://api.github.com/repos/angular/angular.js/issues/15097","id":245240909,"user":{"login":"fmunafokion","id":10862927,"avatar_url":"https://avatars.githubusercontent.com/u/10862927?v=3","gravatar_id":"","url":"https://api.github.com/users/fmunafokion","html_url":"https://github.com/fmunafokion","followers_url":"https://api.github.com/users/fmunafokion/followers","following_url":"https://api.github.com/users/fmunafokion/following{/other_user}","gists_url":"https://api.github.com/users/fmunafokion/gists{/gist_id}","starred_url":"https://api.github.com/users/fmunafokion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmunafokion/subscriptions","organizations_url":"https://api.github.com/users/fmunafokion/orgs","repos_url":"https://api.github.com/users/fmunafokion/repos","events_url":"https://api.github.com/users/fmunafokion/events{/privacy}","received_events_url":"https://api.github.com/users/fmunafokion/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T10:33:04Z","updated_at":"2016-09-07T10:33:04Z","body":"Hi,\r\nI've implemented the feature changing ngView.js (taken from master branch), method ngViewFillContentFactory.\r\n\r\nSimply change:\r\n\r\n`\r\nscope[current.resolveAs || '$resolve'] = locals;\r\n`\r\n\r\nwith:\r\n\r\n```\r\nif (angular.isDefined(current.resolveAs) && !current.resolveAs) {\r\n  angular.forEach(locals, function(value, key) {\r\n    scope[key] = value;\r\n  });\r\n} else {\r\n  scope[current.resolveAs || '$resolve'] = locals;\r\n}\r\n```"}}
{"actor":{"display_login":"fmunafokion"}}