Uploaded image for project: 'Application Controller'
  1. Application Controller
  2. APPC-1054

Move the hard-coded values across components to constant file

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • None
    • None

      1. Create file app-constants:
      •   All the constants in component .ts files can be moved to this file as variables and these variables can be used across components.
      • This will avoid source code change whenever the input-data/desired format of value has to be changed.
      • This will avoid changes at multiple places if any value has to be changed.
      • Best to avoid hard coding as it is considered as anti pattern, hence makes maintenance easier going forward.

            arundathi arundathi
            arundathi arundathi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: