This is wrong. First array element should be a string.
Also, I would expect some mention of the "controller as" syntax in a best practices guide. Injecting $scope should be avoided where possible, in my opinion and the opinion of many others in the Angular community.
4
u/fecal_brunch Jun 25 '14
This is wrong. First array element should be a string.
Also, I would expect some mention of the "controller as" syntax in a best practices guide. Injecting
$scopeshould be avoided where possible, in my opinion and the opinion of many others in the Angular community.