I am quite new to AngularJS I was wondering if is it possible to create new objects inside the parameter ng-bind?
I need this as I do not want to edit my model in JavaScript after receiving from signalr(Loop over all the string dates everywhere in the model and parse them to dates) this is what I am currently doing...
I would rather use ng-bind to help create it in the view such as:
ng-bind="new Date(date).toDateString();"
I know you can access properties of a object in angular ng-bind as well as use other operations such as accumulative operations but is it possible to create an object like above.
Are there any disadvantages of this? as I understand the performance should be the same, the same amount of object initialization are occurring and "if" the date changes a new Date object with the new value will be created and the old one should be disposed.
Cheers.