Is there a way to invoke an ajax compatible WCF service from within an angular.js controller?
I attempted to mix Jquery and Angular.JS in the following manner:
app.controller('ListUsersController', function () {
var me = this;
this.listusers = [];
this.fill = function () {
$.getJSON("Contact.svc/getjemploye", function (data) {
me.listusers.push({id:"1",name:"Vinc"});
});
};
});
Upon adding a user to listusers, it seems like the controller is unable to detect the modification, resulting in the list not being displayed again (The new user added cannot be seen in the HTML).