{"action":"closed","issue":{"url":"https://api.github.com/repos/mareczek/international-phone-number/issues/25","labels_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/25/comments","events_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/25/events","html_url":"https://github.com/mareczek/international-phone-number/issues/25","id":63190677,"number":25,"title":"duplicated div if using directive with ng-if","user":{"login":"Astray-git","id":2520426,"avatar_url":"https://avatars.githubusercontent.com/u/2520426?v=3","gravatar_id":"","url":"https://api.github.com/users/Astray-git","html_url":"https://github.com/Astray-git","followers_url":"https://api.github.com/users/Astray-git/followers","following_url":"https://api.github.com/users/Astray-git/following{/other_user}","gists_url":"https://api.github.com/users/Astray-git/gists{/gist_id}","starred_url":"https://api.github.com/users/Astray-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Astray-git/subscriptions","organizations_url":"https://api.github.com/users/Astray-git/orgs","repos_url":"https://api.github.com/users/Astray-git/repos","events_url":"https://api.github.com/users/Astray-git/events{/privacy}","received_events_url":"https://api.github.com/users/Astray-git/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T08:50:25Z","updated_at":"2015-07-16T03:36:08Z","closed_at":"2015-07-16T03:36:08Z","body":"I have my template like this\r\n```\r\n    <div class=\"form-group\">\r\n        <input\r\n            ng-if=\"LoginController.selected === 'email'\"\r\n            type=\"text\"\r\n            class=\"form-control\"\r\n            ng-model=\"LoginController.username\"\r\n        />\r\n        <input\r\n            ng-if=\"LoginController.selected === 'phone'\"\r\n            type=\"text\"\r\n            international-phone-number\r\n            default-country=\"cn\"\r\n            preferred-countries=\"cn\"\r\n            ng-model=\"LoginController.username\"\r\n            class=\"form-control\"\r\n        >\r\n    </div>\r\n```\r\nevery time I switch `LoginController.selected` from phone to email\r\nthrere will be one more \r\n```\r\n<div class=\"intl-tel-input\"></div>\r\n```\r\n added after the first input\r\n\r\n---\r\nand the class added on directive will be inside the div wrapper, which cause a little difficult to style the whole element"}}