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/f3703d2a-8464-46d9-b8f8-ad3086c79c6eo%40googlegroups.com.

Reply via email to