{"action":"closed","issue":{"url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/645","labels_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/645/comments","events_url":"https://api.github.com/repos/dart-lang/polymer-dart/issues/645/events","html_url":"https://github.com/dart-lang/polymer-dart/issues/645","id":117358045,"number":645,"title":"NeonAnimatable element does not appear when added programmatically to the NeonAnimatedPages","user":{"login":"kitsune0408","id":12462530,"avatar_url":"https://avatars.githubusercontent.com/u/12462530?v=3","gravatar_id":"","url":"https://api.github.com/users/kitsune0408","html_url":"https://github.com/kitsune0408","followers_url":"https://api.github.com/users/kitsune0408/followers","following_url":"https://api.github.com/users/kitsune0408/following{/other_user}","gists_url":"https://api.github.com/users/kitsune0408/gists{/gist_id}","starred_url":"https://api.github.com/users/kitsune0408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kitsune0408/subscriptions","organizations_url":"https://api.github.com/users/kitsune0408/orgs","repos_url":"https://api.github.com/users/kitsune0408/repos","events_url":"https://api.github.com/users/kitsune0408/events{/privacy}","received_events_url":"https://api.github.com/users/kitsune0408/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T13:50:59Z","updated_at":"2015-11-17T14:28:02Z","closed_at":"2015-11-17T14:28:02Z","body":"NeonAnimatable element is not added programmatically to already existing NeonAnimatedPages. \r\n\r\nHere's the html code:\r\n```\r\n<paper-button on-click = \"addPage\">Add page</paper-button>\r\n\r\n<neon-animated-pages id = \"mainPages\" selected =\"0\"\r\n                                 entry-animation=\"slide-from-right-animation\"\r\n                                 exit-animation=\"slide-left-animation\">\r\n\r\n    <neon-animatable on-click = \"goToNextPage\">Page One</neon-animatable>\r\n    <neon-animatable on-click = \"goToNextPage\">Page Two</neon-animatable>\r\n\r\n</neon-animated-pages>\r\n```\r\nBasically every time the button is clicked, a new page should be added.\r\nAnd it *is* added as a child, but still doesn't appear on the web page. The rotation I do with the goToNextPage method does not include new pages and continues to switch between the first two pages which are initially put into html file.\r\n\r\nDart code:\r\n```\r\n@PolymerRegister('pages-test')\r\nclass Pages extends PolymerElement {\r\n  NeonAnimatedPages mainPages;\r\n\r\n  Pages.created() : super.created() {\r\n    mainPages = querySelector(\"#mainPages\") as NeonAnimatedPages;\r\n  }\r\n\r\n  @reflectable\r\n  void goToNextPage(event, [_]) {\r\n    mainPages.selectNext();\r\n  }\r\n\r\n  @reflectable\r\n  void addPage(event, [_]) {\r\n    NeonAnimatable newPage = new NeonAnimatable();\r\n    newPage.text = \"New page\";\r\n    newPage.onClick.listen(goToNextPage);\r\n    mainPages.children.add(newPage);\r\n  }\r\n}\r\n```\r\npubspec.yaml:\r\n```\r\nenvironment:\r\n  sdk: '>=1.9.0 <2.0.0'\r\n\r\ndependencies:\r\n  browser: ^0.10.0\r\n  polymer_elements: ^1.0.0-rc.3\r\n  polymer: ^1.0.0-rc.6\r\n  reflectable: ^0.3.3\r\n  web_components: '>=0.11.3 <0.13.0'\r\n  polymer_interop: ^1.0.0-rc.5\r\n```\r\nIs that a bug or am I missing something?"}}