{"action":"created","issue":{"url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit/issues/3","repository_url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit","labels_url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit/issues/3/comments","events_url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit/issues/3/events","html_url":"https://github.com/klarkc/polymer-loopback-starter-kit/issues/3","id":174873227,"number":3,"title":"Example using the lbclient.js in polymer","user":{"login":"Nigeltiany","id":8957192,"avatar_url":"https://avatars.githubusercontent.com/u/8957192?v=3","gravatar_id":"","url":"https://api.github.com/users/Nigeltiany","html_url":"https://github.com/Nigeltiany","followers_url":"https://api.github.com/users/Nigeltiany/followers","following_url":"https://api.github.com/users/Nigeltiany/following{/other_user}","gists_url":"https://api.github.com/users/Nigeltiany/gists{/gist_id}","starred_url":"https://api.github.com/users/Nigeltiany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nigeltiany/subscriptions","organizations_url":"https://api.github.com/users/Nigeltiany/orgs","repos_url":"https://api.github.com/users/Nigeltiany/repos","events_url":"https://api.github.com/users/Nigeltiany/events{/privacy}","received_events_url":"https://api.github.com/users/Nigeltiany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-03T01:52:28Z","updated_at":"2016-09-08T16:37:41Z","closed_at":null,"body":"How can the browserified files(The loopback Isomer) be used in a polymer component.\r\n```html\r\n<script src=\"src/loopback/scripts/lbclient.js\"></script>\r\n<link rel=\"import\" href=\"/src/app.html\">\r\n<body>\r\n    <my-app></my-app>\r\n</body>\r\n```\r\n```html\r\n<dom-module id=\"my-app\">\r\n    <template>\r\n    <script>\r\n        Polymer({\r\n            is: 'my-app',\r\n            authenticate: function () {\r\n                //Call User method defined in the server ---> undefined\r\n                User.create();\r\n            }\r\n        });\r\n    </script>\r\n</dom-module>\r\n```\r\n---\r\n```html\r\n<link rel=\"import\" href=\"src/loopback/scripts/lbclient.html\">\r\n<link rel=\"import\" href=\"/src/app.html\">\r\n<body>\r\n    <my-app></my-app>\r\n</body>\r\n```\r\n```html\r\n<!--lbclient.html-->\r\n<script src=\"lbclient.js\"></script>\r\n```\r\n```javascript\r\nPolymer({\r\n   is: 'my-app',\r\n   authenticate: function () {\r\n        //Call User method defined in the server ---> undefined\r\n        User.create();\r\n    }\r\n});\r\n```\r\n @klarkc"},"comment":{"url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit/issues/comments/245658613","html_url":"https://github.com/klarkc/polymer-loopback-starter-kit/issues/3#issuecomment-245658613","issue_url":"https://api.github.com/repos/klarkc/polymer-loopback-starter-kit/issues/3","id":245658613,"user":{"login":"klarkc","id":724959,"avatar_url":"https://avatars.githubusercontent.com/u/724959?v=3","gravatar_id":"","url":"https://api.github.com/users/klarkc","html_url":"https://github.com/klarkc","followers_url":"https://api.github.com/users/klarkc/followers","following_url":"https://api.github.com/users/klarkc/following{/other_user}","gists_url":"https://api.github.com/users/klarkc/gists{/gist_id}","starred_url":"https://api.github.com/users/klarkc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarkc/subscriptions","organizations_url":"https://api.github.com/users/klarkc/orgs","repos_url":"https://api.github.com/users/klarkc/repos","events_url":"https://api.github.com/users/klarkc/events{/privacy}","received_events_url":"https://api.github.com/users/klarkc/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T16:37:41Z","updated_at":"2016-09-08T16:37:41Z","body":"BTW the issue with the size of bundle is already know, the strongloop team is working on it, for now wrapping whole loopback into the bundle is the only workaround. strongloop/loopback#989"}}
{"actor":{"display_login":"klarkc"}}