aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes File system project assets to be shown in UI/view using AngularJS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "File system project assets to be shown in UI/view using AngularJS" Watch "File system project assets to be shown in UI/view using AngularJS" New topic
Author

File system project assets to be shown in UI/view using AngularJS

Faraz Ka
Ranch Hand

Joined: Jun 01, 2013
Posts: 53
Hello Experts,

I am new to AngularJS and have a requirement as follows
In the view/UI I have to show the Project file system folder and its sub folders with assets. From UI user can create, update and delete as well.

So, the approach I am planning to follow is as follows

1. Based on file system Project folder hierarchy I will create a data model / object.
2. Via controller I will initialize the data model from the file system Project folder hierarchy and assets
3. Write a code in the $scope for the updation of the file system ( which in turn update the data model as mentioned in step 2)

Now, the important questions
a. What should be the best fit for the data model here. I mean JSON, XML etc.
b. Javascipt can't be used on server side activity. So, in what technology/language implement the logic of file system updation.
c. How to call the logic in (b) inside the $scope of controller.


I am sure this is not the first problem of its kind and lot many must have implemented something similar in the past.
Any standard way/approach to achieve this will be of great help.

Thanks,
FK
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: File system project assets to be shown in UI/view using AngularJS