Any help or suggestion on this?

On Monday, 15 June 2020 00:44:43 UTC-5, Ajit wrote:
>
> Thank you Sander for your response.
>
> One example of my schenario is:
>
> Template calling function(e.g. [ngClass] = "getClass(parameter1, 
> parameter2)") which resides in the component class. I am unable to make 
> this without callinga function as I have multiple rows and each row css 
> class wouold be different based on the row data. This is one example and 
> like this there ae many.
>
> I am trying to avoid refactoring as I have to do for the whole application 
> and it would be lot of effort required and again the whole app need to be 
> retested. 
> Hence I am trying to see is there any alternate approach available to 
> improve the performance. 
>
> Again the application is fully developed and I am the new one to the 
> application. So to refactor I need to understand the whole application 
> which will take time.
>
>
>
> Thanks,
> Ajit Dash
>
>
> On Monday, 15 June 2020 00:05:46 UTC-5, Sander Elias wrote:
>>
>> Hi Ajit,
>>
>> It sound like you are doing too much logic inside the template. Move 
>> most, if not all of the logic to the controller and it will get better. 
>> Also, are you also sure you need to all your choices on a mouseClick? 
>> perhaps refactor your app so, that it only "recalculates" when data-changes 
>> occur.
>>
>> Regards
>> Sander
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/d57413f5-6cbc-40b3-8582-47373a5d7e75o%40googlegroups.com.

Reply via email to