-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$scope not working #34
Comments
Hi, what about "getting object from db by id"? Try assign object I just reproduce your code on localhost and I see values in dialog inputs. |
Sorry I didn't notice that there is a 'scope' property in the options. I've found it in #22. It now works fine. |
Glad to hear that I helped you. Its okey, there is no documentation about |
@zibrohimov please close issue if your problem is solved :) |
Thanks for your hard work and this is saving a lot of my time. However, I've a very small issue for now, which I belive can be fixed easily.
What I'm trying to do is adding and updating an object using bootbox modal. I'm using .dialog() with custom template, which contains some form input elements. I tried to work with $rootScope. When doing insert, updates to input fields are updating the $rootScope.myObject well and there is no problem. But when doing an update, I sould populate the form with current values and thus I'm updating the $rootScope.myObject. I'm doing this with ng-click, because I don't see other way of doing it, becuase before opening the bootbox modal, I should first get the object from database, by id, then update $rootScope. This is not working. In update mode, the fields are not populating with values. Belov is my code sample.
BootBox Options
BootBox
Template.html
$scope.update(id)
$rootScope.myObject
When I click "Update This" link, the modal is showing up with custom html/form, but textboxes are empty. Values are not there. Please help.
The text was updated successfully, but these errors were encountered: