{"action":"created","issue":{"url":"https://api.github.com/repos/mgechev/angular-seed/issues/1223","repository_url":"https://api.github.com/repos/mgechev/angular-seed","labels_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1223/labels{/name}","comments_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1223/comments","events_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1223/events","html_url":"https://github.com/mgechev/angular-seed/issues/1223","id":171731877,"number":1223,"title":"How to include ng-bootstrap","user":{"login":"hucba","id":21088064,"avatar_url":"https://avatars.githubusercontent.com/u/21088064?v=3","gravatar_id":"","url":"https://api.github.com/users/hucba","html_url":"https://github.com/hucba","followers_url":"https://api.github.com/users/hucba/followers","following_url":"https://api.github.com/users/hucba/following{/other_user}","gists_url":"https://api.github.com/users/hucba/gists{/gist_id}","starred_url":"https://api.github.com/users/hucba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hucba/subscriptions","organizations_url":"https://api.github.com/users/hucba/orgs","repos_url":"https://api.github.com/users/hucba/repos","events_url":"https://api.github.com/users/hucba/events{/privacy}","received_events_url":"https://api.github.com/users/hucba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-17T18:48:35Z","updated_at":"2016-11-05T22:09:27Z","closed_at":"2016-08-17T18:54:42Z","body":"[Here](https://github.com/AngularShowcase/ng2-bootstrap-sbadmin/blob/master/tools/config/project.config.ts) it is shown how to include ng-bootstrap, but it is rather bad style to directly inject the lib like this:\n`let additionalDeps: InjectableDependency[] = [\n      { src: 'ng2-bootstrap/bundles/ng2-bootstrap', inject: 'lib' },\n      { src: 'bootstrap/dist/css/bootstrap.css', inject: true },\n      { src: 'font-awesome/css/font-awesome.min.css', inject: true }\n    ];`\n\n What is the proper way to do this?\n\nAngular: 2.0.0-rc.5\nng-bootstrap: 1.0.0-alpha.3\n"},"comment":{"url":"https://api.github.com/repos/mgechev/angular-seed/issues/comments/258645680","html_url":"https://github.com/mgechev/angular-seed/issues/1223#issuecomment-258645680","issue_url":"https://api.github.com/repos/mgechev/angular-seed/issues/1223","id":258645680,"user":{"login":"GNUletik","id":9059840,"avatar_url":"https://avatars.githubusercontent.com/u/9059840?v=3","gravatar_id":"","url":"https://api.github.com/users/GNUletik","html_url":"https://github.com/GNUletik","followers_url":"https://api.github.com/users/GNUletik/followers","following_url":"https://api.github.com/users/GNUletik/following{/other_user}","gists_url":"https://api.github.com/users/GNUletik/gists{/gist_id}","starred_url":"https://api.github.com/users/GNUletik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GNUletik/subscriptions","organizations_url":"https://api.github.com/users/GNUletik/orgs","repos_url":"https://api.github.com/users/GNUletik/repos","events_url":"https://api.github.com/users/GNUletik/events{/privacy}","received_events_url":"https://api.github.com/users/GNUletik/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T22:09:27Z","updated_at":"2016-11-05T22:09:27Z","body":"As I spent a lot of time trying to make it work, here is the proper way to do it (without changing `seed.config.ts`).    \r\nHere is the needed lines in `project.config.ts` : \r\n```\r\n    this.SYSTEM_CONFIG_DEV.paths['@ng-bootstrap/ng-bootstrap'] =\r\n      `${this.APP_BASE}node_modules/@ng-bootstrap/ng-bootstrap/bundles/ng-bootstrap.js`;\r\n\r\n    this.SYSTEM_BUILDER_CONFIG.packages['@ng-bootstrap/ng-bootstrap'] = {\r\n      main: 'index.js',\r\n      defaultExtension: 'js'\r\n    };\r\n\r\n    this.SYSTEM_BUILDER_CONFIG.packageConfigPaths.push(\r\n      join('node_modules', '@ng-bootstrap', '*', 'package.json')\r\n    );\r\n\r\n    // Add `NPM` third-party libraries to be injected/bundled.\r\n    this.NPM_DEPENDENCIES = [\r\n      ...this.NPM_DEPENDENCIES,\r\n      { src: 'jquery/dist/jquery.js', inject: 'libs' },\r\n      { src: 'bootstrap/dist/js/bootstrap.js', inject: 'libs' },\r\n      { src: 'bootstrap/dist/css/bootstrap.css', inject: true }\r\n      // {src: 'jquery/dist/jquery.min.js', inject: 'libs'},\r\n      // {src: 'lodash/lodash.min.js', inject: 'libs'},\r\n    ];\r\n\r\n```\r\nAnd it just works :)"}}
{"actor":{"display_login":"GNUletik"}}