down votefavorite 
<http://stackoverflow.com/questions/27933656/ng-repeat-on-ng-select-with-onchange-function-repeats-the-same-values#>

here is my example http://plnkr.co/edit/oGnKUmg3LHE3wlkGrsqp?p=preview

Hi I would like to display port-number and attributes when ever i call 
onchange function in the ng-select, in the above example every time i click 
add button the add new connection form will create and when ever i select 
the select options the port number and instance connection attributes are 
changed depends on the select option, but the when ever i sect the select 
option the port number and instance creation attributes changes on every 
new connection , any help ?

see screen shots : ![enter image description here][1] ![enter image 
description here][2]

angular.module('Test', [])
.controller('testctr', function($scope){

  $scope.connectionArray = {connectionTypeResource1: [] };
    $scope.addNewConnections = function () {
        $scope.connectionArray.connectionTypeResource1.push({});
        $scope.$apply();
    };
    $scope.removeSubConnection = function (index) {
        $scope.connectionArray.connectionTypeResource1.splice(index, 1);
    };
    $scope.getConnectionTypeResource1= function (type, id) {
        console.log(type);
        $scope.connectionTypeResource11 = 
connectionsResource.getConnectionsResource().customGET('config', {type: 
type}).$object;
        $scope.connectionTypeResource11.instanceId = $scope.uInstance.id;
        console.log($scope.connectionTypeResource11)
    };
    $scope.connectionTypes = [
        {name: 'VERTICA'},
        {name: 'SFTP'},
        {name: 'QUEUE'},
        {name: 'REST'},
        {name: 'CDMADMIN'},
        {name: 'CDMAPI'},
        {name: 'MYSQL'}
    ];



});


  [1]: http://i.stack.imgur.com/h1737.png
  [2]: http://i.stack.imgur.com/XkMlL.png

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to