-
Notifications
You must be signed in to change notification settings - Fork 297
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
Need to reload the complete dashboard configuration #136
Comments
@cbresson33, apologies for the late response. The dashboard directive will definitely need to be re-initialized/recompiled. It may not be the most elegant, but you could do something like this: template: <div ng-if="myOptions">
<dashboard options="myOptions"></dashboard>
</div> then, in your controller: // Assuming you want to use a new options object called `newOptions`:
$scope.myOptions = false;
$timeout(function() {
$scope.myOptions = newOptions;
}, 0); |
@andyperlitch - do you think what I'm trying to achieve is the same as this issue ? see #142 see #142 |
Hi, Thanks. |
Hi there,
I am using your dashboard, and I am loving it.
I work on a dynamic dashboard, where list of widgets displayed comes from a database. There is no problem for the first loading of the dahboard, when it is created, but I need to reset the complete dashboard configuration during the user experience.
As a consequence, I need to reset the $scope.dashboardOptions variable, and reload a new configuration several times. Because of isolated scopes, resetting the variable does not make any changes on the view.
I tried to use an ng-if directive for the dashboard creation , but it worked only for the first load.
Is there a elegant way to do that, except reloading the complete page ?
Thank you...
The text was updated successfully, but these errors were encountered: