var t = [{n:5,v:7} ,{n:4,v:8} ,{n:5,v:99} ];
var opa = {n:4,v:8};
for (var e = 0 ; e<t.length; e++){
if( JSON.stringify(t[e])=== JSON.stringify(opa)){
console.log(t[e]);
}
}
$("#send").click(function(){
console.log('hi!');
$.post("test.php", { name: "John", time: "2pm" } );
$(location).attr('href', '/test.php');
});
var TestApp = angular.module("TestApp", []);
function TestCtrl($scope) {
$scope.t1 = {name:'vasya'};
$scope.t2 = $scope.t1;
}
t1- {{t1.name}}<br><br>
<input type='text' ng-model='t1.name'><br>
t2- {{t2.name}}