Questions tagged [angular-bootstrap]

Bootstrap helpers module for AngularJs framework

Bootstrap components written in pure AngularJS by the AngularUI Team

Dependencies

This repository contains a set of native AngularJS directives based on Bootstrap's markup and CSS. As a result no dependency on jQuery or Bootstrap's JavaScript is required. The only required dependencies are:

  • AngularJS (requires AngularJS 1.2.x, tested with 1.2.16)
  • Bootstrap CSS (tested with version 3.1.1). This version of the library (0.11.2) works only with Bootstrap CSS in version 3.x. 0.8.0 is the last version of this library that supports Bootstrap CSS in version 2.3.x.

Files to download

Build files for all directives are distributed in several flavours: minified for production usage, un-minified for development, with or without templates. All the options are described and can be downloaded from here.

Alternativelly, if you are only interested in a subset of directives, you can create your own build.

Whichever method you choose the good news that the overall size of a download is very small: <20kB for all directives (~5kB with gzip compression!)

Installation

As soon as you've got all the files downloaded and included in your page you just need to declare a dependency on the ui.bootstrap module: angular.module('myModule', ['ui.bootstrap']); You can fork one of the plunkers from this page to see a working example of what is described here.

CSS

Original Bootstrap's CSS depends on empty href attributes to style cursors for several components (pagination, tabs etc.). But in AngularJS adding empty href attributes to link tags will cause unwanted route changes. This is why we need to remove empty href attributes from directive templates and as a result styling is not applied correctly. The remedy is simple, just add the following styling to your application:

.nav, .pagination, .carousel, .panel-title a { cursor: pointer; }

Homepage : http://angular-ui.github.io/bootstrap/

580 questions
-1
votes
1 answer

Bootstrap drop down is not expanding

This is my HTML code with bootstrap classes and is using it in Angular here the dropdown is not expanding, values Save Data and Fetch Data are not displaying in the browser. But If I use the same code in any online bootstrap workspace it works fine…
KSK
  • 636
  • 1
  • 9
  • 29
-1
votes
1 answer

Esc button is calling the button action

This issue is related to accessibility. When user is clicking the esc button, its calling the button action. I am using the below code. Hellow World. How we can avoid…
Ankit
  • 9
  • 1
-1
votes
1 answer

Angular-bootstrap typeahead + ng-click/ng-focus

In my app I use angular-bootstrap typeahead component, this way:
-1
votes
1 answer

Failed to instantiate module ng due to $injector:strictdi

I have "migrated" my Angular project to ES6 by simply adding babelify to my gulp browserify task. Everything was working fine, though I come back from the weekend and something broke... My app is now complaining of the…
justinledouxweb
  • 1,337
  • 3
  • 13
  • 26
-1
votes
1 answer

What are the libraries included for type ahead in angularjs

I want to run autocomplete with filtering based on the search in tex tbox. I want to know what are the libraries to be included in the head section.
-1
votes
1 answer

Simple edit component for Bootstrap?

I can not find dedicated (text) edit (input) component in Bootstrap suite. What is the best practice for using edit (input) components in Bootstrap powered projects? It isn't be nice if edit components looks and behaves differently from the other…
TomR
  • 2,696
  • 6
  • 34
  • 87
-1
votes
1 answer

Replace directive definition in AngularJS

I use library AngularUI Bootstrap. And i want create a new custom directive "datepicker", but this directive defined in AngularUI Bootstrap. Question: I can remove directive from any module? I can replace directive from any module? Thank.
ZhukV
  • 2,892
  • 6
  • 25
  • 36
-1
votes
1 answer

UI sortable for Select Item in Angular

Below is my code,which I have tried UI-sortable option is not working in this line
-1
votes
1 answer

Angular + Bootstrap Accordion, Browser Back button action and opening the corresponding item

I have implemented Bootstrap accordion(3.*.*) using Angular JS (1.2.*). Here I have used ui-router to load template when click each item in accordion. its working fine. But I am getting the following error whenever click any item Error:…
Asik
  • 7,967
  • 4
  • 28
  • 34
-6
votes
1 answer

How to get the "value" of ng-href literally?! (leafy)

How do i get the value of pk in the ng-href and how do i call it into my controller.js?
J.Rayga
  • 11
  • 3
1 2 3
38
39