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
13
votes
3 answers

Angular UI Bootstrap Modal Dialog Close Event

How do I detect when an Angular UI Bootstrap modal dialog is closed? I need to know when the dialog closes so I can broadcast a loginCancelled event using the angular-http-auth library to prevent my Angular UI from hanging, especially after closing…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
13
votes
2 answers

Angularjs UI Modal Forms

I used to have a login dialog using bootstrap modal: $scope.loginDialog = { backdrop: true, keyboard: true, windowClass: "modal loginDialog", backdropClick: true, templateUrl: '/tmpl/user/loginForm', controller: function…
Harry
  • 52,711
  • 71
  • 177
  • 261
12
votes
2 answers

How to merge Angular and Vue projects together?

I read various resources available on this but still couldn't figure out a way. The issue here is that I want to merge two different projects together. My colleague was working on one feature which he designed in AngularJS. I developed my feature…
CodeHunter
  • 2,017
  • 2
  • 21
  • 47
12
votes
1 answer

UI-Bootstrap Popover goes off the screen

I'm using the Ui-bootstrap popover from UI Bootstrap (AngularJS). and the popover in the border of the page seems to get out of the screen... Is there a better way to position the popover - so it could stay inside the screen? as you can see popover…
12
votes
13 answers

Angular ui-select is not displaying the list of options when included in angular-ui-bootstrap modal

I am facing an issue with the anular-ui-bootstrap modal directive. Am using the angular's ui-select component in my app as a replacement for the html select. This ui-select is working fine in any page it is being included. But when i tried to…
12
votes
2 answers

Allow Moment.js dates in bootstrap-ui datepicker

I'm trying to use Bootstrap UI's DatePicker with Moment.js dates. It is possible if I convert my model value from Moment.js date to standard Date prior to assigning it to a scope: $scope.myDate = moment('2014-11-07T21:20:15').toDate(); However, I…
Slava Fomin II
  • 26,865
  • 29
  • 124
  • 202
12
votes
2 answers

How do I style just one specific angular-ui-bootstrap tooltip to be wider?

In my AngualrJS application we use angular-ui-bootstrap tooltips. I have one tooltip that needs to accommodate long text. The answer to SO question Displaying long text in Bootstrap tooltip shows me how to make tooltips go wider... ... but what if I…
Daryn
  • 4,791
  • 4
  • 39
  • 52
12
votes
3 answers

How to use Angular ui.bootstrap tabs with ui.router?

Here's my initial implementation of ui.bootstrap tabs using ui.router:
Franz Amador
  • 591
  • 1
  • 5
  • 17
12
votes
4 answers

Angular UI Bootstrap Vertical Tabs

Using Angular UI Bootstrap, how do we build vertical-stacked tabs that is left-aligned to the tab content which looks like this?
Henry Neo
  • 2,357
  • 1
  • 24
  • 27
12
votes
2 answers

Angular bootstrap ui modal with same controller instead of new controller

I am using angular bootstrap ui modal box it says to give a new $modalInstance for new controller.I want to use the same controller where i have initialized the modal box.I searched but no success.I found this links but no success - How to use the…
Namdeo Karande
  • 403
  • 1
  • 3
  • 19
12
votes
3 answers

Angular JS Date format filter inside Ng-Repeat not formatting

Actual Date coming from JSON Need to format it as below . Effective Date : 2010-08-31 (trim the time stamp) End Date : 2010-08-31 (trim the time stamp) Am using the below code for Formatting the date inside Ng-Repeat.
  • Hero
    • 639
    • 4
    • 12
    • 33
  • 12
    votes
    3 answers

    Doubly nested views : UI-Router or UI-Bootstrap tabs / accordion?

    I am a total Angular (and JS) beginner. I want to develop something like this: (with apologies to @PhillipKregg for borrowing his excellent illustration). Effectively, I want nested tabbed notebooks - a row of tabs (views?), each which can contain…
    Mawg says reinstate Monica
    • 38,334
    • 103
    • 306
    • 551
    12
    votes
    4 answers

    angular ui error: $modal.open is not a function

    I'm trying to get a modal to appear using Angular-UI v0.10.0 (http://angular-ui.github.io/bootstrap/) and Angular 1.1.5 and I receive the following error: Error: $modal.open is not a function I'm not sure or why I'm getting this error. Here's what…
    awmcreative
    • 441
    • 1
    • 3
    • 7
    12
    votes
    2 answers

    Call callback function on esc in Angular UI Bootstrap's modal

    I'm using a modal of Angular UI Bootstrap that can be closed via a Cancel button or via ESC. As I have to do some cleaning when it closes, I've written the 'cancel' method in the scope, but this is only called when clicking this Cancel button, how…
    farolfo
    • 388
    • 1
    • 4
    • 13
    12
    votes
    4 answers

    Avoiding Visual Studio validation errors with Angular UI Bootstrap

    Angular UI Bootstrap introduces several new HTML tags, such as accordion and accordion-group. Angular does a good job of teaching the browser new tricks to use these. But how do I teach Visual Studio to not complain about unknown elements? Perhaps…
    Edward Brey
    • 40,302
    • 20
    • 199
    • 253