Hi,
AngularJS provides a default module if none is given for historical
reasons. In my opinion, it should error out the same way your second
example does!
In the ng-app attribute's value is the name of your top module.
You should define a module to get you started, I won't explain a
lot because there is enough of that available on the net already.
adding a script tag, and initialize a new module will help you
<script>
(function () {
"use strict";
angular.module('eee',[])
}())
</script>
I would like to refer you to the style-guide
<https://github.com/johnpapa/angular-styleguide>, read through that. You
won't understand most of it now, but it will prevent you from picking up
bad/old/outdated practices. It will save you from some unlearning, turns
out that's way harder as learning ;)
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.