0
avanekar02 created
Hello on clicking createnew i wish to pass some default data from the parent page to the create uimodal
do you have a workaround for this
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
Hi,
You can pass data like this,
$uibModal.open({ templateUrl: '~/App/common/views/users/createOrEditModal.cshtml', controller: 'common.views.users.createOrEditModal as vm', backdrop: 'static', resolve: { userId: function () { return userId; } } });then get it in modal like this,
(function () { appModule.controller('common.views.users.createOrEditModal', [ '$scope', '$uibModalInstance', 'abp.services.app.user', 'userId', function ($scope, $uibModalInstance, userService, userId) { .... } ]); })();Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)