I am trying AngularJS out, but I found the official tutorial download code & pre-defined npm dependence without telling how to create it from beginning.
I am on linux (mint mate 17), with nodejs / npm / bower installed, but no more modules, now I want to make a hello world project, which has a index.html, it show "1+1=2" via:
<p>1 + 1 = {{ 1 + 1 }}</p>
I ask this question because I don't hope I can't even make a hello world from beginning by myself after finish the official tutorial, so don't laugh at me please, I did google, they are just similar as the official guider, I don't like that.
So, can anyone give me the simplest & least step-by-step guide, how to get angularjs, and run it?
Simplest is using CDN :
<!DOCTYPE html>
<html ng-app>
<head>
<title>Hello World</title>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.20/angular.min.js"></script>
</head>
<body>
<p> 1+2 = {{ 1+2 }}</p>
</body>
</html>
Otherwise, you can use bower to install AngularJS.
bower install angular#1.2.20