mercredi 25 avril 2018

Angular Component not rendering no error received

In a system I am working on there are multiple angular custom components being used. The one screen that has worked up until yesterday; it uses two types of these components. One being a button and one being multiple components put together create a entering field for information (It amounts to a bunch of labels and text-boxes).

The problem I seem to have is that the component for the address (the one that is currently broken) doesnt seems to work. Which is strange for several reasons

  1. This component works everywhere else in the application, apart from the one section this screen is in [This is the business partner part]
  2. Nothing close to it has recently been changed
  3. The buttons used on the screen are customised as well and they render just fine.

So here is what I think you will need in order to help me out The business partner create screen code in question:

    <bp-address ng-model="businessPartner.physicalAddress"
          aj-title="Physical Address">
    </bp-address>

The button customization that seems to work just fine:

    <aj-button aj-click="createBusinessPartner()"
    aj-name="cmdCreateBusinessPartner2"
    aj-label="Create"
    aj-style="create"
    aj-validate="true"></aj-button>

I dont think there is an actual problem with the component - due to the fact that it seems to work in other parts of the application with no trouble.

Here is what it looks like if it works:

    <bp-address ng-model="buyer.physicalAddress"
    aj-title="Physical Address"
    aj-countries="buyerModel.countries"
    aj-submit-action="saveAddress()"
    aj-can-edit="auth.canEditBuyer">
    </bp-address>

A little context: aj-countries isn't need for the one in question - but is used to populate the countries aj-submit-action is not needed because there is no need to submit but one part of the screen at a time [on the create business partner screen] aj-can-edit is a boolean value to determine whether you can edit or access the controls - it defaults to true.

What I am trying to get across here is - Can anyone please help me determine why this component is not rendering in this part of the application anymore? How do I go about fixing this?

If you need anything else tell me I would be happy to help you help me.




Aucun commentaire:

Enregistrer un commentaire