https://github.com/normandy72/expressions-and-interpolation
Expressions and interpolation in JS (and AngularJS). Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin
https://github.com/normandy72/expressions-and-interpolation
angular angularjs html html5 javascript js
Last synced: about 1 month ago
JSON representation
Expressions and interpolation in JS (and AngularJS). Coursera course "Single Page Web Applications with AngularJS" by Yaakov Chaikin
- Host: GitHub
- URL: https://github.com/normandy72/expressions-and-interpolation
- Owner: Normandy72
- Created: 2023-01-04T14:56:54.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T15:49:07.000Z (over 3 years ago)
- Last Synced: 2025-03-04T08:44:54.567Z (over 1 year ago)
- Topics: angular, angularjs, html, html5, javascript, js
- Language: HTML
- Homepage:
- Size: 1.74 MB
- 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
2. add script tags in index.html
3. add h1 and div tags
4. add ng-app attribute into html tag
5. add ng-controller attribute into div tag
6. in app.js create IIFE, add 'use strict'
7. create angular.module and .controller
8. add $inject property to controller function, create an array that contains variable 'scope' as string literally
9. define function MsgController
10. add {{name}} in index.html
11. create sayMessage property to $scope
12. call this function in index.html
13. add images
14. create button, add ng-click attribute which value is a function
15. add img, in src write {{stateOfBeing}} instead state in image name
16. in img tag change src on ng-src (that helps avoid mistakes when browser read code line by line and can't find image)