I am using angularjs, and having problem with null
assignment in safari only. Its working in chrome and firefox.
$scope.submit = function(id=null){
}
I am getting this error
SyntaxError: Expected token ')'
when I remove null
, It just works. I don't know why !
$scope.submit = function(id){
}
Please help me to understand why this happening only with safari ?