Skip to content
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

update view #44

Closed
Vikas-Stormy opened this issue Jul 8, 2015 · 6 comments
Closed

update view #44

Vikas-Stormy opened this issue Jul 8, 2015 · 6 comments

Comments

@Vikas-Stormy
Copy link

hello jonas ,i have a requirement that based upon the button click event i just need to refresh the folders i,e

i have created a function in FileManagerCtrl
and in that i have called the $scope.fileNavigator.refresh();
it is sending a post request to server fine but it is not updating in the view

can u plz provide a solution for that

by example of front end button and the function in FileManagerCtrl

@joni2back
Copy link
Owner

Hello @Vikas-Stormy , can you explain the issue with more details ?
You need to refresh the filelist (right-side) or the folderlist (tree from left-side) ?

@Vikas-Stormy
Copy link
Author

need to refresh the file list and folder list both upon clicking a button thank u jonas

@joni2back
Copy link
Owner

Ok, how are you binding the button click event?

@Vikas-Stormy
Copy link
Author

i have a scope problem jonas i have an another app angular js app ng-flow i need to integrate both of

can u suggest some tips what need to take care of when merging both of it .like as they both have the conrtrollers

when i use FileManagerCtrl outside of the i am getting a scope problem

@joni2back
Copy link
Owner

You could use $rootScope to unify actions of multiple controllers

Another way is to do something like

<div ng-controller="YourAppCtrl">
  lalala
  <div ng-controller="FileManagerCtrl">
    <button ng-click="fileNavigator.refresh()">Refresh</button>
  </div>
</div>

@Vikas-Stormy
Copy link
Author

thank you jonas u r helping me alot ,i have solved this by using another approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants