0

on click i am creating row similar to the one added in the image. every time i would be having same row with same modal.

enter image description here How can i select the selected values from a row

2
  • How can we guide without seeing your code ? Commented Jun 23, 2015 at 5:33
  • There is no image... please add some code or create a plnkr Commented Jun 23, 2015 at 5:34

1 Answer 1

1
Its just a sample to get to your need.

.js file..

angular.module('nonStringSelect', [])
.run(function($rootScope) {
  $rootScope.model = { id: 2 };
})
.directive('convertToNumber', function() {
  return {
    require: 'ngModel',
    link: function(scope, element, attrs, ngModel) {
      ngModel.$parsers.push(function(val) {
        return parseInt(val, 10);
      });
      ngModel.$formatters.push(function(val) {
        return '' + val;
      });
    }
  };
});
Sign up to request clarification or add additional context in comments.

Comments

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.