https://github.com/normandy72/name-calculator
Simple app using AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin
https://github.com/normandy72/name-calculator
angular angularjs html html5 javascript js
Last synced: 26 days ago
JSON representation
Simple app using AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin
- Host: GitHub
- URL: https://github.com/normandy72/name-calculator
- Owner: Normandy72
- Created: 2023-01-04T09:40:01.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T10:14:28.000Z (over 3 years ago)
- Last Synced: 2025-03-04T08:44:54.865Z (over 1 year ago)
- Topics: angular, angularjs, html, html5, javascript, js
- Language: HTML
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Sequence:
1. add main files (index.html, app.js, angular.min.js)
2. add script tags in html file
3. add h1 and divs
4. create IIFE in app.js and add 'use strict'
5. create angular.module('name_of_module', array) without semicolon
6. create .controller('name_of_controller', function($scope){...})
7. add attribute ng-app=""name_of_module" into tag body
8. add attribute ng-controller="name_of_controller" into tag div
9. add property name of $scope (equal empty string)
10. add property totalValue (initial value is 0)
11. add totalValue in tag div (in double curly braces)
12. add attribute ng-model="name" into tag input
13. add attribute ng-keyup="name_of_function();" into tag input - when key is up function is calling
14. define dispalyNumeric function into .controller function
15. create function that calculate total value