1

I'm new to AngularJS.

I'm using angular 1.5.x and ui-bootstrap-tpls-1.3.2.js. I want to use multiple datepicker popup on page(around 6-7). Example provided here specifically mentions each popup. Is there a generic way of handling this?

I'm not using JQuery. Thanks

6
  • have you tried just putting a bunch of inputs on the page? <input type="text" class="form-control" uib-datepicker-popup ng-model="first">, etc??? just change the model Commented May 12, 2016 at 3:38
  • Yes i did. How about handling of ng-click="open1()" and is-open="popup1.opened". Do i need to mention this for all datepicker.. Commented May 12, 2016 at 3:41
  • Well I suppose it depends on what you need to do. If you want something to happen other than a model value to be updated, you can definitely have an ng-click defined. maybe a plunkr would help Commented May 12, 2016 at 3:44
  • Are you asking about, for instance, $scope.open1 = function() {$scope.popup1.opened = true;};? Commented May 12, 2016 at 4:46
  • Yes, do i need to mention it for each popup. Can it be handled dynamically? Commented May 12, 2016 at 5:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.