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
24
votes
7 answers

UI Bootstrap Popover: change width

I'm trying to use the popovers from UI Bootstrap in AngularJS: http://angular-ui.github.io/bootstrap/#/popover
dhrm
  • 14,335
  • 34
  • 117
  • 183
24
votes
3 answers

How to use the same controller for modal and non-modal form in Angular UI Bootstrap?

I've got a modal with a registration form. The same form should be displayed at the bottom of the landing page not in a modal. Currently my controller that handles registration modal takes $modalInstance as one of its parameters along $scope etc. If…
szimek
  • 6,404
  • 5
  • 32
  • 36
24
votes
6 answers

How to usemultiple Angular UI Bootstrap Datepicker in single form?

I have a form where there is a need for me to have 2 or more date fields for different things. I tried the Angular UI Bootstrap which works fine when I have only 1 date field in the form. But it stops working if I have multiple date fields and I…
Neel
  • 9,352
  • 23
  • 87
  • 128
24
votes
5 answers

Possible to install just Bootstrap CSS with Bower?

Starting a new Angular project via Yeoman asks if you want to include Twitter Bootstrap (I'm using Sass flavor). Doing so includes both the styles and scripts. However, I want to use UI Bootstrap instead of Bootstrap's scripts (which depend on…
Brian
  • 1,028
  • 12
  • 20
24
votes
2 answers

ui bootstrap modal's controller 'is not defined'

i am trying to use the modal directive from ui-bootstrap 0.6 here is the working default plunker from the ui-bootstrap page: http://plnkr.co/edit/JGBiBSeRqOnwRhYA9py8?p=preview now, i tried to make the coding style fits angular-seed style to…
François Romain
  • 13,617
  • 17
  • 89
  • 123
23
votes
10 answers

Modal is closed when cursor is released outside the modal after Chrome update (angularjs and bootstrap-ui)

Sometimes when I want to quickly select the entire text of an input (within a modal), I begin selecting from the end of the text and move the mouse to the left until the entire text is selected and then I release. Sometimes this release will occur…
sports
  • 7,851
  • 14
  • 72
  • 129
23
votes
5 answers

Angularjs bootstrap tabset tab heading

I am wondering whether it is possible to write html inside an angularjs bootstrap tabset tab heading. I am trying to add a svg inside the title. I have created a quick snippet in plunker to try and demonstrate the issue I am having.
Ross_
  • 235
  • 1
  • 2
  • 8
23
votes
3 answers

angular-ui modal with controller as syntax

I'm using angular-ui-bootstrap-bower#0.7.0 with angular#1.2.10 and when opening a modal where the controller is an "old fashioned" one, everything works fine. However, when I have a controller meant to use with the new "controller as syntax" it…
Cotten
  • 8,787
  • 17
  • 61
  • 98
23
votes
3 answers

AngularJS Jasmine Test Fails: Failed to instantiate module

My angular app worked great and so did my tests, using karma and jasmine, until I added a dependency in ui.bootstrap. Now the app still works as expected, but I can't get my tests to run. This is what I have: app.js - added dependency in…
Haji
  • 1,715
  • 7
  • 25
  • 41
23
votes
4 answers

how angular ui typeahead trigger when focus

I'm using angular-ui typeahead. How can I trigger the popup items when focus on the input box, not after typing.
Awakening
  • 3,615
  • 8
  • 35
  • 51
22
votes
4 answers

How to catch backdrop click event when clicked out of angular ui bootstrap modal?

In my application, it is using $modal.open() function to open a modal popup which is using another page as a template. While clicking the button, it is showing the modal popup fine. If I click the Cancel button then it is calling this function and…
user3506670
22
votes
6 answers

Remove week column and button from Angular-ui bootstrap datepicker

I am using angular-ui bootstrap datepicker. Now I need to remove #(week) column and week button from datepicker. This date picker is being used in many forms of my application. I want to remove week column from all of them. For this, I had globally…
Dipesh Gandhi
  • 765
  • 1
  • 13
  • 31
21
votes
3 answers

Angular UI Bootstrap Popover - How add a close button

I've a table with a popover for every cell as in the follow example: the call to popover:
Zauker
  • 2,344
  • 3
  • 27
  • 36
21
votes
2 answers

Multi-item responsive carousel

I'm building a website that requires a carousel to be implemented. Because this website is built on AngularJS I wanted to go with Angulars Boostrap Carousel, however, this carousel appears to only allow one image at a time. What I will need will be…
Katana24
  • 8,706
  • 19
  • 76
  • 118
21
votes
7 answers

Angular UI month picker

I am trying to use angular-ui-datepicker as a month picker. But not able to configure it, tried it all. Here is the PLUNKER. I tried to set the modes as
harishr
  • 17,807
  • 9
  • 78
  • 125