I have $scope.lineData[0].line
in my controller. I want to check $scope.lineData[0] != undefined
, If so then $scope.lineData[0].line
else just "0"
value to add. How can do this with angular JS ?
Can anyone help me to do this? Thanks in advance..
In Template we would do it something like
In Controller, we'll be doing