angular-ui-bootstrap

use angular bootstrap modal for insert link in textAngular Editor

别来无恙 提交于 2019-12-25 04:12:15
问题 i want use from angularjs bootstrap modal for insert link , so in textAngularSetup.js file include $modal as dependency, and use it in insertLink action function: taRegisterTool('insertLink',{ tooltiptext: taTranslations.insertLink.tooltip, iconclass: 'icon-link', action: function(){ var that=this; var result={ texttodisplay:'ahmad', webaddress:'', isOk:'' } var insertLinkmodalScope=$rootScope.$new(); insertLinkmodalScope.modalInstance=$modal.open({ templateUrl: 'editor/views/insertlink

UI-Bootstrap 0.6.0 Carousel not working when the slide images are changed dynamically

↘锁芯ラ 提交于 2019-12-25 04:03:45
问题 I'm not completely sure this is a bug in carousel, but it really looks like it. I'm using a carousel to display boat pictures. When I click on a button, a function to get a list of pictures by boat ID is executed and the list of pictures is retrieved from the database. First time, everything works perfectly. I can see the carousel displaying the pictures. However, if I click on this button for a second time, the function is run again, and the slide images are changed dynamically. This time,

how to pass a function as a argument to another function in a controller in angularjs?

混江龙づ霸主 提交于 2019-12-25 03:52:52
问题 A very common question. help is really appreciated !! i am not able to pass loginCtrl as a argument in SignupCtrl Also if there is any proper way to do this please suggest here is the code $scope.loginCtrl = function ($scope, $modalInstance) { $scope.cancelLogin = function () { $modalInstance.dismiss('cancel'); } }; $scope.signupCtrl = function ($scope, $modalInstance,loginCtrl){ $scope.close1=loginCtrl.cancelLogin; $scope.cancelLogin = function () { $modalInstance.dismiss('cancel'); } }; 回答1

how to use Flexslider or parallax slider with AngularJS (with Angular UI)?

[亡魂溺海] 提交于 2019-12-25 02:20:40
问题 Have anybody tried using Flexslider and Parallax-Slider in AngularJS application? None of them works if I use them in AngularJS application. This AngularJS application is also using UI Bootstrap. Any advice or suggestion is welcome. 回答1: have you looked at https://github.com/EnthusiasticCode/angular-flexslider or https://github.com/durated/angular-parallax which help use them in Angular. 来源: https://stackoverflow.com/questions/23475821/how-to-use-flexslider-or-parallax-slider-with-angularjs

Angular gives blank page when i use ui.bootstrap in my controller

北城以北 提交于 2019-12-25 01:49:50
问题 I am trying to use the the angular bootstrap when i try to add the dependency in my controller and start the server with grunt serve i get a blank page.Please have a look at the bower components in the screen shot. When i try to use it in angular.module('kbv1App', ['ui.bootstrap']).controller it fails if i remove the [ui.bootstrap] it works fine. Any idea wha will be the issue? Update. Console error [$injector:modulerr] Failed to instantiate module ui.bootstrap due to: [$injector:nomod]

How to add time picker in datepicker html javascript?

给你一囗甜甜゛ 提交于 2019-12-25 01:34:20
问题 I am implementing datepicker but I want to add time picker also. Now I am selecting date and time separately. but I want to select date and time in sequence after one click. I want to implement like this http://embed.plnkr.co/MtQK3wsHtf1hy1F9A5rg/ But I want to consider 24hrs clock. I don't want to use any directive. In plnkr using directive. I want using single javascript file. angular.module('ui.bootstrap.demo', ['ngAnimate', 'ngSanitize', 'ui.bootstrap']); angular.module('ui.bootstrap.demo

Angular How to serialize Date in format yyyy-MM-dd in json request

百般思念 提交于 2019-12-24 20:52:47
问题 I have an object who has a property 'birthDate' of type Date. On screen, I should display the birthday in format DD/MM/YYYY. Now I use bootstrap bsDatePicker. But in the database, it is stored in the format YYYY-MM-DD(type string). So to submit the modification, I should convert the birthday to this format. Can you tell me how to serialize the Date(DD/MM/YYYY) to the format YYYY-MM-DD in the JSON request? Do you have any good idea to optimize the conversion without any change in the database?

AngularJS Controller resetting $scope variables after setting

╄→гoц情女王★ 提交于 2019-12-24 20:01:05
问题 I am trying to implement a simple datepicker using the akveo AngularJS project. When I change my date,I am setting a $scope variable from on-change function. When I debug, I can see that the correct picked value is being passed and $scope.simStartDate is actually changing to the set date. However, when I try to read it later, in ParamsFormBtnClicked() function, the has reset back to its original value. It looks like I am changing a value in a different scope, but I cannot figure out where.

Unknown provider: $modalInstanceProvider <- $modalInstance in Angularjs modal

依然范特西╮ 提交于 2019-12-24 17:06:47
问题 I am using angular bootstrap ui modal which is working fine but when I try to close it using modalInstance it gives above error.Here is my code var app = angular.module('LoginModule', ['ui.bootstrap']); app.controller('LoginModal', ['$scope', '$modal', function ($scope, $modal) { $scope.animationsEnabled = true; $scope.open = function (size) { var modalInstance = $modal.open({ animation: $scope.animationsEnabled, templateUrl: '/app/template/Login.html', controller: 'LoginController', size:

Popover doesn't work with ng-grid [closed]

牧云@^-^@ 提交于 2019-12-24 15:39:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm trying to show a popover after mouseenter on a ng-grid cell, but it failed. What am I doing wrong? Here's the plunk: http://plnkr.co/edit/pucSb6?p=preview 回答1: I've forked your plunk: http://plnkr.co/edit/EUhUxPHhS674E7eeTBmP I have updated your ui-bootstrap version to 0.10.0: <script src="http://angular-ui