I remember seeing this famous quote from a video on AngularJS saying that should be always using a . (dot) in your models.
Well I am trying to follow this say I have
var item = {}
item.title = "Easy Access to support";
item.available = true;
item.price = 31.67;
So this works great in my view i do
{{ item.title }}
{{ item.available }}
I am using a dot so I think this is good.
But I have some properties that I don't consider part of the model but maybe I am wrong. For example I have a property I use to enable or disable a button using the ng-disable, I have entered this using dot format. Its basically entered like so
$scope.disableButton = true;
and I use it like
ng-disable="disableButton"......
Should I make this part of the model "item" ? or create another js object just so i can hold this property using a dot ?
Anybody know if this acceptable or should I be doing everything (even these simple properties) with a .dot ??
Thanks