Kuali Mobility
  1. Kuali Mobility
  2. MOBILITY-721

DEV - Fix duplicated data load method call.

    Details

    • Type: Bug Fix Bug Fix
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: News
    • Labels:
      None
    • Rank (Obsolete):
      115090
    • Global Rank:
      95589
    • Sprint:
      Mobility 3.3

      Description

      In most route definition, a controller is declared, but some templates declare the controller again using ng-controller. This will case the controller to be attached and executed twice. For example, in news tool, the NewsController has been executed three times during the first page loading as it has been declared in index.jsp, newsSourceList.jsp and the route definition.

      Other issue is using ng-init improperly.
      The proper way to call a controller's init() function is to just add the function call at the end of the controller function.
      But in most of "init" method, it also calls load data method ( i.e. $http) . With multiple controller declared, it creates multiple requests for the same data loads via "init" method called.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Xin Feng (Inactive)
            Reporter:
            Xin Feng (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 day
              1d
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 day
              1d

                Agile

                  Structure Helper Panel