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
21
votes
2 answers

Angular UI Bootstrap Modal - how to prevent user interaction

In my current usecase, I am trying to use angular-ui modal window to show the progress of calculations that we do in a background process which we disable on completion. All works well. I just want to disable user from clicking any of element in…
Aditya Sethi
  • 10,486
  • 11
  • 26
  • 31
21
votes
5 answers

Positioning Angular UI bootstrap Datepicker

I am having a "small" issue with the angularjs ui datepicker. I need to indicate somehow, if an input with a datepicker attach, should show the popup from the bottom-left corner of the input (as default) or if I want it from the bottom-right corner…
abottoni
  • 525
  • 1
  • 10
  • 19
20
votes
5 answers

Angular UI Bootstrap Modal: [$injector:unpr] Unknown provider: $uibModalInstanceProvider

This is a bit strange. When I search this issue online I see many pages of Google results and SO solutions... but none seem to work! In a nutshell, I am trying to implement AngularUI Bootstrap Modal. I keep getting the following error: Error:…
20
votes
5 answers

How to show form input errors using AngularJS UI Bootstrap tooltip?

For example I have the form where I am showing form input errors. I need to show red badge (with 'hover to show errors') near input label if there are some errors. If user will hover this red badge - he will see list of errors using AngularJS UI…
webvitaly
  • 4,241
  • 8
  • 30
  • 48
20
votes
3 answers

Angular-ui bootstrap modal without creating new controller

plunk: http://plnkr.co/edit/85Wl5W If I use the $modalInstance on the same controller(modalController.js), without being in a modal, angular gets frozen. I just want to simplify my life using angularjs with the angular-ui bootstrap modal service. I…
20
votes
6 answers

AngularUI modal to be draggable and resizable

I have an angularUi modal window wrapped in a directive: html:
Mdb
  • 8,338
  • 22
  • 63
  • 98
20
votes
4 answers

Modal Window Issue (Unknown Provider: ModalInstanceProvider)

New to AngularJS and can't seem to find out what this error means. I've found a few others with the same error but it seems their issues don't correlate to mine. Unknown provider: $modalProvider <- $modal error with AngularJS (Seems I've got the…
edward.louis
  • 357
  • 2
  • 5
  • 14
20
votes
1 answer

Limit Angular UI-Bootstrap Typeahead to specific object property

I have the following Angular UI-Bootstrap typeahead working great: Though, it's almost working too great. I'm able…
Jesse
  • 2,043
  • 9
  • 28
  • 45
20
votes
4 answers

Angular UI Bootstrap Dialog Width

The Angular UI Bootstrap Dialog is easy to implement, but difficult to customise. How on earth do you change the width? Or even max-width? http://angular-ui.github.com/bootstrap/#/dialog I've tried $dialog.dialog({width:600}) and other variations…
Nick
  • 6,366
  • 5
  • 43
  • 62
19
votes
3 answers

Angular UI Bootstrap responsive Navbar dropdown not working properly in new version

I just created an AngularJS project with grunt bower and Yeoman. Included Updated version to Angular 1.3.13. I want to use Angular UI bootstrap. I added Nav Bar which is responsive. But while on small screens, the drop down doesn't seem to work.…
iCode
  • 8,892
  • 21
  • 57
  • 91
19
votes
1 answer

ui-bootstrap drop down seems to be not working with version 0.12.0

Something seems to have been broken with version 0.12.0 of ui-bootstrap. Here is my plunkr that shows the issue This works with version 0.11.0 http://plnkr.co/edit/9XJx2c2X7lRSc6V1n5BO?p=preview With this plunkr if you replace the following…
user2789284
  • 751
  • 1
  • 11
  • 28
19
votes
7 answers

using ui.bootstrap causing issues with carousel

I am having issues with getting the carousel working properly. I used yeomen to scaffold the angular app. I am getting this error Error: [$compile:ctreq] Controller 'carousel', required by directive 'slide', can't be…
Asim Zaidi
  • 27,016
  • 49
  • 132
  • 221
19
votes
4 answers

Angular UI Bootstrap DatePicker - get selected date on close / blur

I have an ng-repeat with each row having multiple UI-Bootstrap Datepickers. I am trying to call a function in my controller when the date is selected and the picker closes. I have tried using UI-Event to capture the blur event but the model hasn't…
Holland Risley
  • 6,969
  • 9
  • 25
  • 34
18
votes
6 answers

How do I remove the blue border that appears when clicking on a uib-accordion-heading?

I've tried the solutions presented in the following questions to no avail: Remove blue border from css custom-styled button in Chrome How to remove the blue box shadow border in button if clicked How to remove border (outline) around text/input…
Legion
  • 3,922
  • 8
  • 51
  • 95
18
votes
3 answers

uib-tooltip : conditionally show or hide tooltip

I want to conditionally enable/disable a tooltip on a button. I have done this to test the disable state: But the tooltip shows. How to disable the tooltip? Thank you
user1260928
  • 3,269
  • 9
  • 59
  • 105