{"action":"created","issue":{"url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2","repository_url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2","labels_url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2/comments","events_url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2/events","html_url":"https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2","id":206250667,"number":2,"title":"Using with angular cli","user":{"login":"patrickoneill46","id":1260456,"avatar_url":"https://avatars.githubusercontent.com/u/1260456?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickoneill46","html_url":"https://github.com/patrickoneill46","followers_url":"https://api.github.com/users/patrickoneill46/followers","following_url":"https://api.github.com/users/patrickoneill46/following{/other_user}","gists_url":"https://api.github.com/users/patrickoneill46/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickoneill46/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickoneill46/subscriptions","organizations_url":"https://api.github.com/users/patrickoneill46/orgs","repos_url":"https://api.github.com/users/patrickoneill46/repos","events_url":"https://api.github.com/users/patrickoneill46/events{/privacy}","received_events_url":"https://api.github.com/users/patrickoneill46/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2017-02-08T16:30:50Z","updated_at":"2017-02-14T16:12:36Z","closed_at":null,"body":"Hi,\r\n\r\nI have noticed  a strange issue that if you run lightstreamer with an app created and served using the  angular cli.\r\nIn development mode i.e. `ng serve`, when you connect to a backend with lightstreamer by calling the `connect` function, after it has connected somehow the bootstrap application function (https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-angular2/blob/master/src/app/main.ts#L15) gets triggered again.\r\n\r\nNote, this does not happen when you run a production build and compile and minify the typescript source files.\r\n\r\nI know this is an ask but could you guys investigate this? You could scaffold an app using the cli and re use everything you have here. I am seeing the same issue and I wonder is that why you have included a `tsc` task in your npm scripts."},"comment":{"url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/comments/279753053","html_url":"https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2#issuecomment-279753053","issue_url":"https://api.github.com/repos/Lightstreamer/Lightstreamer-example-StockList-client-angular2/issues/2","id":279753053,"user":{"login":"patrickoneill46","id":1260456,"avatar_url":"https://avatars.githubusercontent.com/u/1260456?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickoneill46","html_url":"https://github.com/patrickoneill46","followers_url":"https://api.github.com/users/patrickoneill46/followers","following_url":"https://api.github.com/users/patrickoneill46/following{/other_user}","gists_url":"https://api.github.com/users/patrickoneill46/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickoneill46/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickoneill46/subscriptions","organizations_url":"https://api.github.com/users/patrickoneill46/orgs","repos_url":"https://api.github.com/users/patrickoneill46/repos","events_url":"https://api.github.com/users/patrickoneill46/events{/privacy}","received_events_url":"https://api.github.com/users/patrickoneill46/received_events","type":"User","site_admin":false},"created_at":"2017-02-14T16:12:35Z","updated_at":"2017-02-14T16:12:35Z","body":"Running on ng serve I see this\r\n\r\n`Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.`\r\n\r\nAnd then it is called again after lightstreamer has created the session"}}
{"actor":{"display_login":"patrickoneill46"}}