- add main files (index.html, app.js, angular.min.js)
- add script tags in html file
- add h1 and divs
- create IIFE in app.js and add 'use strict'
- create angular.module('name_of_module', array) without semicolon
- create .controller('name_of_controller', function($scope){...})
- add attribute ng-app=""name_of_module" into tag body
- add attribute ng-controller="name_of_controller" into tag div
- add property name of $scope (equal empty string)
- add property totalValue (initial value is 0)
- add totalValue in tag div (in double curly braces)
- add attribute ng-model="name" into tag input
- add attribute ng-keyup="name_of_function();" into tag input - when key is up function is calling
- define dispalyNumeric function into .controller function
- create function that calculate total value
-
Notifications
You must be signed in to change notification settings - Fork 0
Normandy72/Name-Calculator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple app using AngularJS. Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published