Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.ProductList = ProductList; //An array of obejects.
- //This is opened from the template. from one of the objects in $scope.ProductList
- $scope.open = function (size, $Object) {
- var modalInstance = $uibModal.open({
- animation: $scope.animationsEnabled,
- templateUrl: tD+'Modals/ProductEdit.html',
- controller: 'ModalInstanceCtrl',
- windowClass: 'app-modal-window',
- size: size,
- resolve: {
- EditingObject: function () {
- return $Object;
- },
- BackendModel : function (){
- return Products;
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement