Friday, September 29, 2017

Need a folder to be routed making all the contains inside that folder available

Hi guys i need to actually route a folder which will be containing multiple files and folder inside it.

For example 
My folder name is Contains -- with inner folder  sample1 sample2.
sample1 folder contains --  app.js index.js Index.html 
sample2 folder contains --  app.js index.js Index.html

so I want routes for like every file in each folder's 
example --  localhost:3030/Contains/sample1/Index.html
localhost:3030/Contains/sample2/Index.html
localhost:3030/Contains/sample1/index.js
localhost:3030/Contains/sample1/app.js
... etc 

How can I achieve this using stateProvider?

Thanks in advance

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/09/29/need-a-folder-to-be-routed-making-all-the-contains-inside-that-folder-available/
via @lzomedia #developer #freelance #web

No comments:

Post a Comment