Questions tagged [ng2-bootstrap]

ngx-bootstrap is an angular2 library for using bootstrap3 or bootstrap4 with angular2

Github repo: https://github.com/valor-software/ngx-bootstrap

Docs: http://valor-software.github.io/ngx-bootstrap/

Slack: ngx-slack.herokuapp.com

266 questions
61
votes
7 answers

Angular 2 unit testing - @ViewChild is undefined

I am writing an Angular 2 unit test. I have a @ViewChild subcomponent that I need to recognize after the component initializes. In this case it's a Timepicker component from the ng2-bootstrap library, though the specifics shouldn't matter. After I…
ebakunin
  • 3,621
  • 7
  • 30
  • 49
40
votes
3 answers

difference between ngx-bootstrap and ng2 bootstrap?

I'm making project in bootstrap (UI) and angular 2. I'm new to both things My friend suggests me to use ng2 bootstrap I am so much confused between ngx bootstrap and ng2 bootstrap. Always when I search ng 2 bootstrap it take me to the ngx…
Asad
  • 3,070
  • 7
  • 23
  • 61
22
votes
6 answers

Add custom button in actions column in ng2-smart-table in Angular 2

In an ng2-smart-table in Angular 2 I want to add a new button in the actions column and by clicking on this button it will route to another page. This code has the add, edit, and delete buttons. I tried to make the new button like this but it's not…
Yousef Al Kahky
  • 703
  • 1
  • 8
  • 23
22
votes
4 answers

Is there a way to build the mobile nav bar in ng2-bootstrap?

I've been implementing ng2-bootstrap and Angular2. I cannot figure out how to make the mobile navbar open / close. Is this something that just isn't supported yet? Or am I missing something? Update, html:
drizzie
  • 3,351
  • 2
  • 27
  • 32
15
votes
2 answers

Run Spring4MVC with Angular 2 on a single server

I am new to angular2, I want to know what is the possible file structure for SpringMVC4 with angular 2? As shown in image, it will work for Angular 1.x but file structure of Angular 2 is quite different and its component driven, and I am using…
user6709592
13
votes
4 answers

There is no directive with "exportAs" set to "bs-modal" when using ng2-bootstrap

I am following the example given here https://valor-software.com/ng2-bootstrap/#/modals But when i put the template in my html
13
votes
5 answers

How to override twitter bootstrap styles in angular2 with ng2-bootstrap

I am using ng2-bootstrap from valor-software. When I start the website using ng serve, the page that is served up has the following style tags in the header: