Questions tagged [angular-ui-bootstrap]

A set of AngularJS directives based on Twitter Bootstrap's markup and CSS

Angular UI bootstrap is a set of AngularJS directives based on Twitter Bootstrap's markup and CSS.

The goal is to provide native AngularJS directives without any dependency on jQuery or Bootstrap's JavaScript. It is often better to rewrite an existing JavaScript code and create a new, pure AngularJS directive. Most of the time the resulting directive is smaller as compared to the original JavaScript code size and better integrated into the AngularJS ecosystem.

Directives

Stack Snippet Starter Pack

HTML:

<link href="//unpkg.com/bootstrap@3/dist/css/bootstrap.css" rel="stylesheet">
<script src="//unpkg.com/angular/angular.js"></script>
<script src="//unpkg.com/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>

<div ng-app="ui.bootstrap.module" >
  <div ng-controller="ui.bootstrap.ctrl">

    <span uib-tooltip="{{ToolTipText}}" tooltip-placement="bottom" >
      Hover for Tooltip
    </span>

  </div>
</div>

JavaScript:

angular.module('ui.bootstrap.module', ['ui.bootstrap'])
.controller('ui.bootstrap.ctrl', function ($scope) {
  $scope.ToolTipText = "Hello, World!";
})

Related Tags

  • AngularStrap is light and fast. It has been built from the ground up to leverage ngAnimate!

Related Libraries

  • UI-Bootstrap 4 Bootstrap components written in pure AngularJS by the AngularUI Team. Ported to Bootstrap 4 by Morgul
4643 questions
11
votes
2 answers

Angular modal-backdrop issue

I am using angular-bootstrap modal but I have an issue with modal-backdrop. I am new to angular-bootstrap, and I hope anyone can help me. When I click on modal-backdrop it's hiding the modal popup, but I would like to keep the modal-backdrop until…
Pawan
  • 31,545
  • 102
  • 256
  • 434
11
votes
1 answer

Angular UI Bootstrap Modal update $scope

I want to use the modal to edit my data. I pass the data to the modal instance. When I click ok I pass the edited data in the $scope.selected back to the controller. There I would like to update the original $scope. Somehow the $scope doesn't…
Tino
  • 3,340
  • 5
  • 44
  • 74
11
votes
4 answers

Hide angular-ui tooltip on custom event

I've been looking around and trying out different things but can't figure it out. Is it possible to hide an angular-ui tooltip with a certain event? What I want to do is to show a tooltip when someone hovers over a div and close it when a users…
11
votes
4 answers

AngularJS/UI - Focus input in dialogs

Is there any way to set focus in input controls using AngularJS/Angular-UI ? I saw that Angular-UI has some Jq-UI=focus directive but I'm unable to get it to work. I have a few dialogs that I display using Angular-UI $dialog service and would really…
Roger Johansson
  • 22,764
  • 18
  • 97
  • 193
11
votes
1 answer

Angular UI Bootstrap - Popup Datepicker

I would like to have a datepicker popup upon clicking a button using the Angular UI Bootstrap library's components. There are examples of both on the Angular UI Boostrap website but I don't see a way to combine them. I don't like the idea of placing…
Saad Farooq
  • 13,172
  • 10
  • 68
  • 94
10
votes
3 answers

Upgrading Angular application to Bootstrap 4.0.0

How can I upgrade my existing angular application to Bootstrap version 4.0.0. I know it would be easy but I am looking for proper process to upgrade without facing much issues as I could see many stack overflows of Bootstrap 4.0.0 Stable…
Aakash Kumar
  • 893
  • 4
  • 15
  • 38
10
votes
1 answer

Angular - Tooltip does not show for disabled buttons in Chrome

I have this code for buttons and I want to shows the tooptips for disabled button. This works fine in Firefox and IE, but does not work in Chrome. In Chrome, only the buttons that are enabled showed the tooltip.
matchi
  • 533
  • 2
  • 6
  • 17
10
votes
1 answer

Is there a way to intercept BootstapUI's $uibModal dismissed event?

I'm using the modal compoenent from Bootstrap UI (https://angular-ui.github.io/bootstrap/) in Angular to render a modal, and on closing I want to be able to redirect to another state, or at least have a function be called. The problem is I can…
Vee6
  • 1,527
  • 3
  • 21
  • 40
10
votes
4 answers

Can you add Bootstrap to a Ionic App?

I am currently developing an Ionic app and I was wondering if I could add an image gallery based on Bootstrap. I know Ionic and Bootstrap don't work really well together, but I was wondering if it is possible.
10
votes
1 answer

AngularJS Error Unknown provider: $$jqLiteProvider <- $$jqLite <- $animateCss <- $uibModalStack <- $uibModal

I'm trying to create a simple modal that pops up and gives different menu options. It should be easy, and I followed the Plunker for modals on the ui bootstrap website but I'm getting an error: $uibModal is an unknown provider Here's the angular…
Michael
  • 311
  • 4
  • 22
10
votes
5 answers

AngularJS Bootstrap alert dismiss-on-timeout attribute doesn't work

I'm trying to use AngularJS Bootstrap alerts like explained here with the "dismiss-on-timeout" attribute. It has no effect in this example, the alert just appears regularly and doesn't disappear. Alert…
10
votes
1 answer

AngularJS ngModel doesn't work inside a ui-bootstrap tabset

The following code illustrates the problem: AngularJS Plunker
10
votes
2 answers

Angularjs Accordion Access isOpen State

Is there a way to access whether an accordion-group is open or not? I know there's the isOpen directive but I'm not sure if there's a way to access the state of that while purely in the html. Using (and abusing?) two way binding I can set a variable…
Teeknow
  • 1,015
  • 2
  • 17
  • 39
10
votes
3 answers

Error: [$injector:nomod] Module 'ui.bootstrap' is not available! You either misspelled [...]

I am having this problem here and I haven't gotten any consistent solution so far looking out there. I am running a Java project with Angular on the front-end, and trying to implement an autocomplete feature using ui-bootstrap, but I always get this…
bobleujr
  • 1,179
  • 1
  • 8
  • 23
10
votes
3 answers

Angular UI bootstrap: Type ahead select multiple

I am using angular UI bootstrap type-ahead directive for type-ahead in a form http://angular-ui.github.io/bootstrap/ I am fetching the records from remote server via $http service. It is working fine. However I can select only one element from list…
Syed
  • 1,461
  • 3
  • 19
  • 37