kyukyukyu / dash-web

The AngularJS app part of Dash (https://github.com/kyukyukyu/dash).
MIT License
1 stars 0 forks source link

Create a service that manages state variables for each of UI sections #18

Closed kyukyukyu closed 8 years ago

kyukyukyu commented 8 years ago

For instance, section 'Create' should have state variables for these:

It seems better to gather these variables in single service for maintainability. Therefore, it is advisable to create a service that manages state variables for each of UI sections. e.g. CreateSectionState

Service CourseCart already does this kind of role, and its content could be considered as one of 'state variables'. However, since this might be shared across multiple UI sections, it seems better to leave it as-is.