{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/ng-admin/issues/190","labels_url":"https://api.github.com/repos/marmelab/ng-admin/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/ng-admin/issues/190/comments","events_url":"https://api.github.com/repos/marmelab/ng-admin/issues/190/events","html_url":"https://github.com/marmelab/ng-admin/issues/190","id":52710227,"number":190,"title":"Integration with AngularStrap Popover","user":{"login":"jamesholcomb","id":362729,"avatar_url":"https://avatars.githubusercontent.com/u/362729?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesholcomb","html_url":"https://github.com/jamesholcomb","followers_url":"https://api.github.com/users/jamesholcomb/followers","following_url":"https://api.github.com/users/jamesholcomb/following{/other_user}","gists_url":"https://api.github.com/users/jamesholcomb/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesholcomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesholcomb/subscriptions","organizations_url":"https://api.github.com/users/jamesholcomb/orgs","repos_url":"https://api.github.com/users/jamesholcomb/repos","events_url":"https://api.github.com/users/jamesholcomb/events{/privacy}","received_events_url":"https://api.github.com/users/jamesholcomb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jpetitcolas","id":688373,"avatar_url":"https://avatars.githubusercontent.com/u/688373?v=3","gravatar_id":"","url":"https://api.github.com/users/jpetitcolas","html_url":"https://github.com/jpetitcolas","followers_url":"https://api.github.com/users/jpetitcolas/followers","following_url":"https://api.github.com/users/jpetitcolas/following{/other_user}","gists_url":"https://api.github.com/users/jpetitcolas/gists{/gist_id}","starred_url":"https://api.github.com/users/jpetitcolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpetitcolas/subscriptions","organizations_url":"https://api.github.com/users/jpetitcolas/orgs","repos_url":"https://api.github.com/users/jpetitcolas/repos","events_url":"https://api.github.com/users/jpetitcolas/events{/privacy}","received_events_url":"https://api.github.com/users/jpetitcolas/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-12-23T03:06:30Z","updated_at":"2015-01-13T13:10:19Z","closed_at":null,"body":"I'm trying to integrate ng-admin into an existing Angular 1.3 app that has a dependency on AngularStrap 2.1.4.\r\n\r\nWhen declaring a bs-popover like this:\r\n\r\n        <button type=\"button\" class=\"btn btn-lg btn-primary ng-scope\" data-placement=\"bottom\" bs-popover=\"popover\">Toggle Me\r\n        </button>\r\nI get an error:\r\n\r\n    TypeError: undefined is not a function\r\n    at a (http://localhost:3000/bower_components/ng-admin/build/ng-admin.min.js:7:10936)\r\n    at angular.module.provider.$get (http://localhost:3000/bower_components/ng-admin/build/ng-admin.min.js:7:11425)\r\n    at PopoverFactory (http://localhost:3000/bower_components/angular-strap/dist/angular-strap.js:2628:24)\r\n    at postLink (http://localhost:3000/bower_components/angular-strap/dist/angular-strap.js:2690:23)\r\n    at invokeLinkFn (http://localhost:3000/bower_components/angular/angular.js:8213:9)\r\n    at nodeLinkFn (http://localhost:3000/bower_components/angular/angular.js:7722:11)\r\n    at compositeLinkFn (http://localhost:3000/bower_components/angular/angular.js:7075:13)\r\n    at nodeLinkFn (http://localhost:3000/bower_components/angular/angular.js:7717:24)\r\n    at compositeLinkFn (http://localhost:3000/bower_components/angular/angular.js:7075:13)\r\n    at publicLinkFn (http://localhost:3000/bower_components/angular/angular.js:6954:30) <button type=\"button\" class=\"btn btn-lg btn-primary ng-scope\" data-placement=\"bottom\" bs-popover=\"popover\">\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/marmelab/ng-admin/issues/comments/69741570","html_url":"https://github.com/marmelab/ng-admin/issues/190#issuecomment-69741570","issue_url":"https://api.github.com/repos/marmelab/ng-admin/issues/190","id":69741570,"user":{"login":"jpetitcolas","id":688373,"avatar_url":"https://avatars.githubusercontent.com/u/688373?v=3","gravatar_id":"","url":"https://api.github.com/users/jpetitcolas","html_url":"https://github.com/jpetitcolas","followers_url":"https://api.github.com/users/jpetitcolas/followers","following_url":"https://api.github.com/users/jpetitcolas/following{/other_user}","gists_url":"https://api.github.com/users/jpetitcolas/gists{/gist_id}","starred_url":"https://api.github.com/users/jpetitcolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpetitcolas/subscriptions","organizations_url":"https://api.github.com/users/jpetitcolas/orgs","repos_url":"https://api.github.com/users/jpetitcolas/repos","events_url":"https://api.github.com/users/jpetitcolas/events{/privacy}","received_events_url":"https://api.github.com/users/jpetitcolas/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T13:10:19Z","updated_at":"2015-01-13T13:10:19Z","body":"I've successfully made it work, including:\r\n\r\n``` html\r\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/angular-strap/2.1.2/angular-strap.js\"></script>\r\n<script src=\"//cdnjs.cloudflare.com/ajax/libs/angular-strap/2.1.2/angular-strap.tpl.min.js\"></script>\r\n```\r\n\r\nAnd configuring my view with:\r\n\r\n``` js\r\npost.editionView()\r\n    // [...]\r\n    .addField(new Field('clickme').type('template').template(function () {\r\n        return '<button type=\"button\" bs-popover=\"popover\" data-title=\"Clicked!\">Click me!</button>';\r\n    }));\r\n```\r\n\r\n![image](https://cloud.githubusercontent.com/assets/688373/5721109/b977b326-9b2d-11e4-9824-9aa7a3463eed.png)\r\n\r\nCan you try it again and let us know? \r\n\r\nNote we however get an error from Angularstrap:\r\n\r\n> TypeError: Cannot read property 'toLowerCase' of undefined\r\n    at TooltipFactory (http://cdnjs.cloudflare.com/ajax/libs/angular-strap/2.1.2/angular-strap.js:3744:43)\r\n    at http://localhost:8000/build/ng-admin.min.js:9276:3930\r\n    at Object.invoke (http://localhost:8000/src/javascripts/bower_components/angular/angular.js:4182:17)\r\n    at http://localhost:8000/src/javascripts/bower_components/angular/angular.js:6482:43\r\n    at forEach (http://localhost:8000/src/javascripts/bower_components/angular/angular.js:323:20)\r\n    at Object.<anonymous> (http://localhost:8000/src/javascripts/bower_components/angular/angular.js:6480:13)\r\n    at Object.invoke (http://localhost:8000/src/javascripts/bower_components/angular/angular.js:4182:17)\r\n    at Object.enforcedReturnValue [as $get] (http://localhost:8000/src/javascripts/bower_components/angular/angular.js:4035:37)\r\n    at Object.invoke (http://localhost:8000/src/javascripts/bower_components/angular/angular.js:4182:17)\r\n    at http://localhost:8000/src/javascripts/bower_components/angular/angular.js:4000:37\r\n\r\nNot sure yet from where it comes, but I'm looking on it."}}