Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1335

Migrate config.json to an AngularJS configuration file

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      1. Run 'gulp' and check that a new constant called mmCoreConfigConstants is added to the build file.
      2. Run the app, go to 'App Settings' > 'About' and check that the app version name and code are shown.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE

      Description

      Using config.json has a problem: it's loaded asynchonously using $http. If we use AngularJS constants instead the data will be available right away.

      We could also mantain the config.json file and create a gulp task to migrate the data to an Angular constant.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Juan Leyva
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                29/Dec/15