vendredi 8 mai 2015

how to set and get new data in angulajs

when adding products and price it was added in the table. how to set the added data and get the data in another view

routerApp.controller('products', function ($scope) {

$scope.items = [

];
    $scope.addRow = function(){    
    $scope.items.push({'Products':$scope.Products,'Price':$scope.Price});

 }

Aucun commentaire:

Enregistrer un commentaire