Branch
- master: Install essential libraries
- Step2: Directive
- Step3: Install essential other libraries
- Step4: Routing(ngRoute)
- Step5: Todos
- Step6: Ajax
- Step7: Routing(ui-router)
- Step8: Component Router
- Step9: Component Todos
- Step10: Components of the todoDetail
- Step11: RxJS
mkdir SampleApp && cd $_
npm init -y
npm install angular@1.5.3 --save
HTML
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Angular1 Study</title>
</head>
<body ng-app>
<script src="node_modules/angular/angular.js"></script>
</body>
</html>
or
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Angular1 Study</title>
</head>
<body ng-app>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
</body>
</html>
npm install live-server
live-server
npm install http-server
http-server
ruby -run -e httpd -- -p 8000
or
ruby -rwebrick -e 'WEBrick::HTTPServer.new(:DocumentRoot => "./", :Port => 8000).start'
python -m SimpleHTTPServer
Add to the body tag of Index.html
{{1+1}}
2 is displayed in the browser!