The-WebOps-Club / erp-2016

1 stars 3 forks source link

Defining ui-router paths #4

Closed chinnichaitanya closed 9 years ago

chinnichaitanya commented 9 years ago

Lets ideate on defining the path for every department (or) sub-department (or) personal wall. Currently in the erp, everything is implemented as /wall/:number and depending on the parameter number, page is rendered.

I tried implementing it using /wall/{type}/?dept&subDept&id. type can take values 'profile' or 'department' and the rest are values for searching the posts accordingly.

Because of my new implementation, the ?dept&subDept&id parameters are appearing in every route and I'm not sure why. Check: https://github.com/deepakpadamata/erp-2016/issues/3

What say ?

chinnichaitanya commented 9 years ago

We can even have separate states for department (or) sub-department (or) personal wall i.e, profile.

chinnichaitanya commented 9 years ago

After reading this : http://www.soapui.org/testing-dojo/best-practices/understanding-rest-headers-and-parameters.html, I want to have separate views for department and profile @deepakpadamata: what say ?

deepakpadamata commented 9 years ago

Was what I was sugesting anyways. Peace