I am new to angularjs and I can't understand what $scope is in angularjs. Can someone please explain in the simplest way possible what does $scope do in angular js and what can we use it for. Please explain it in a way you would explain someone with absolutely no knowledge of programming. Also I have read the manual and I still did not understand so please don't direct me to it.
Also does javascript contain $scope or is it just within angularjs. I know javascript has scopes such as variable scope which means that a variable can either be global or not global based on where you declare the variable in the code. Is $scope in angular the same thing? Also what does this line of code signify: $scope.username = 'World'; So username is a variable and we are assigning the string "World" to that variable. But I cant understand what is $scope doing? Thanks for the help in advance. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
