1. To display the contents of the pop-up display box which increases when the modal determination ng-show and the like, to the need to determine the variables $ scope resolve into the child controller and the sub controller $ Inject constructor and the $ scope variables inside the statement, which will be able to
<Script type = "text / ng-template" id = "template / ~~~ .html"> </ script> $ scope which use these variables to determine the.
2. If you are using .result.then modal and in which another function, then it must be added in this sub-controller $ uibModalInstance.close (true);. This is a job.
3.check the difference between two arrays of objects in javascript
1 var b1 = [ 2 { id: 0, name: 'john' }, 3 { id: 1, name: 'mary' }, 4 { id: 2, name: 'pablo' }, 5 { id: 3, name: 'escobar' } 6 ]; 7 8 var b2 = [ 9 { id: 0, name: 'john' }, 10 { id: 1, name: 'mary' } 11 ]; 12 13 var res = b1.filter(item1 => !b2.some(item2 => (item2.id === item1.id && item2.name === item1.name)));