angularjs:angularjs_tutorial
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
angularjs:angularjs_tutorial [2015/06/25 12:24] – [Startup] mithat | angularjs:angularjs_tutorial [2015/06/25 12:30] (current) – [Specifying routes] mithat | ||
---|---|---|---|
Line 39: | Line 39: | ||
<code javascript> | <code javascript> | ||
- | The second parameter (in this example an empty array) is not optional: it's where additional modules (i.e., dependencies) that your app module will use are specified. You'll almost certainly want to put this JS in a separate file. | + | The second parameter (in this example an empty array) is not optional: it's where additional modules (i.e., dependencies) that your app module will use are specified. You'll almost certainly want to put this JS in a separate file, say, '' |
The resulting not-doing-anything-interesting-yet files might look like: | The resulting not-doing-anything-interesting-yet files might look like: | ||
Line 71: | Line 71: | ||
==== Preparing index.html ==== | ==== Preparing index.html ==== | ||
- | To use AngularJS' | + | To use AngularJS' |
<code html5> | <code html5> | ||
Line 117: | Line 117: | ||
==== Specifying routes ==== | ==== Specifying routes ==== | ||
- | You next need to tell the your app instance that it should use the '' | + | You next need to tell the your app instance that uses the '' |
<file javascript app.js> | <file javascript app.js> |
angularjs/angularjs_tutorial.1435235086.txt.gz · Last modified: 2015/06/25 12:24 by mithat