Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. $scope.ProductList = ProductList; //An array of obejects.
  2.  
  3. //This is opened from the template. from one of the objects in $scope.ProductList
  4. $scope.open = function (size, $Object) {
  5.  
  6. var modalInstance = $uibModal.open({
  7. animation: $scope.animationsEnabled,
  8. templateUrl: tD+'Modals/ProductEdit.html',
  9. controller: 'ModalInstanceCtrl',
  10. windowClass: 'app-modal-window',
  11. size: size,
  12. resolve: {
  13. EditingObject: function () {
  14. return $Object;
  15. },
  16.  
  17. BackendModel : function (){
  18. return Products;
  19. }
  20.  
  21. }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement