{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/16171","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/16171/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/16171/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/16171/events","html_url":"https://github.com/angular/angular.js/issues/16171","id":249821267,"number":16171,"title":"isArray and isString evalulation bug","user":{"login":"Andersama","id":25020235,"avatar_url":"https://avatars0.githubusercontent.com/u/25020235?v=4","gravatar_id":"","url":"https://api.github.com/users/Andersama","html_url":"https://github.com/Andersama","followers_url":"https://api.github.com/users/Andersama/followers","following_url":"https://api.github.com/users/Andersama/following{/other_user}","gists_url":"https://api.github.com/users/Andersama/gists{/gist_id}","starred_url":"https://api.github.com/users/Andersama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andersama/subscriptions","organizations_url":"https://api.github.com/users/Andersama/orgs","repos_url":"https://api.github.com/users/Andersama/repos","events_url":"https://api.github.com/users/Andersama/events{/privacy}","received_events_url":"https://api.github.com/users/Andersama/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-12T16:19:56Z","updated_at":"2017-08-12T21:21:52Z","closed_at":"2017-08-12T21:21:52Z","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATION\r\n-->\r\n\r\n<!--\r\n- For *SUPPORT QUESTIONS*, use one of the\r\n[support channels](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question).\r\n- Before submitting, please **SEARCH GITHUB** for a similar issue or PR. -->\r\n\r\n**I'm submitting a ...**\r\n<!-- (check one with \"x\") -->\r\n- [ x] bug report\r\n- [ ] feature request\r\n- [ ] other (Please do not submit support requests here (see above))\r\n\r\n**Current behavior:**\r\n<!-- Describe how the bug manifests / how the current features are insufficient. -->\r\nisArray and isString have issues handling an array of strings and/or referencing scope properties. At the moment it seems that when used from ng-show or ng-if the properties are transformed into strings which breaks the expected type checking behavior.\r\n\r\n**Expected / new behavior:**\r\n<!-- Describe what the behavior would be without the bug / how the feature would improve AngularJS -->\r\nisArray and isString when used from ng-show or ng-if should evaluate the expression and leave it untouched.\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\n<!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example,\r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:yBpEi4).\r\n-->\r\nhttp://plnkr.co/edit/rGDKCeol363kXf8V06UB\r\n\r\n**AngularJS version:** 1.x.y\r\n<!-- Check whether this is still an issue in the most recent stable or in the snapshot AngularJS version (https://code.angularjs.org/snapshot/) -->\r\n1.6.5 is the code I tested, however I've noticed this behavior in 1.6.x versions. 1.6.6 breaks the syntax of my example, however I'm fairly certain that the behavior is reproducible in the latest version.\r\n\r\n**Browser:** [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n<!-- All browsers where this could be reproduced (and Operating System if relevant) -->\r\nall\r\n\r\n**Anything else:**\r\n<!-- e.g. stacktraces, related issues, suggestions how to fix -->\r\nEvaluate the object before transformations like .join() or .tostring() are used which would change the type of the object."},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/322006842","html_url":"https://github.com/angular/angular.js/issues/16171#issuecomment-322006842","issue_url":"https://api.github.com/repos/angular/angular.js/issues/16171","id":322006842,"user":{"login":"gkalpak","id":8604205,"avatar_url":"https://avatars2.githubusercontent.com/u/8604205?v=4","gravatar_id":"","url":"https://api.github.com/users/gkalpak","html_url":"https://github.com/gkalpak","followers_url":"https://api.github.com/users/gkalpak/followers","following_url":"https://api.github.com/users/gkalpak/following{/other_user}","gists_url":"https://api.github.com/users/gkalpak/gists{/gist_id}","starred_url":"https://api.github.com/users/gkalpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkalpak/subscriptions","organizations_url":"https://api.github.com/users/gkalpak/orgs","repos_url":"https://api.github.com/users/gkalpak/repos","events_url":"https://api.github.com/users/gkalpak/events{/privacy}","received_events_url":"https://api.github.com/users/gkalpak/received_events","type":"User","site_admin":false},"created_at":"2017-08-12T21:21:51Z","updated_at":"2017-08-12T21:21:51Z","body":"@thorn0 is right ([updated plnkr][1]).\r\n\r\n[1]: http://plnkr.co/edit/hRBOV7MA5uku6DfmjqbY?p=preview"}}
{"actor":{"display_login":"gkalpak"}}