Click here to Skip to main content
16,011,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Am using to Breeze JS & Angular JS to get the scope sp that am binding table(ng-repeater).
JavaScript
GetPermissionList(): void {

           var query = breeze.EntityQuery.from("GetPermissions");
           this.dataManager.Query(query).then(
               data => {

                   this.$scope.PermissionsList = <Permission[]>data.results;
               }).catch((s) => alert("fail: " + s));

       }


Am trying to add new record and after save changes am rebind same function . scope is not getting refresh.
JavaScript
createItem(item: any): void {
    this.dataManager.CreateEntity('Permission', {
        NAME: item.Name,
        DESCRIPTION: item.Description,
        DATE_CREATED: new Date()
    });

    this.dataManager.SaveChanges();
    this.GetPermissionList();
}

So that New record is not refreshed on page .
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900