AngularJS

 ANGULAR

Overall: Basically AngularJS is extending the HTML to do code inside it.
Core Website: http://angularjs.org/

Runs in the browser not in the server
Your backend can be anything

There are no threads in Javascript but do have callbacks.
If need callbacks and Angular look at:
    zone.js handles callbacks

DATA FLOWS:
 Common data flow in a web app:
   2-way communication with "Data Service" that flows into "Data Model"
that changes "View Model" or "Form".
"View Model" changes "View". The "Form" changes "Validator" which changes "Data Service".

 Common data flow in AngularJS:
   2-way communication with "Data Service" that flows into "Data Model"
that changes "View Model".  "View Model" changes "View" or "Form" AND changes "Data Service".
The "Form" changes "Validator".

 So AngularJS has "View Model" doing more and Validator only talks to "View Model".



https://www.youtube.com/watch?v=QETUuZ27N0w


Background
    Web Sites:
        Traditional - little or no AJAX
        AJAX - Single Page Applications
        Fully Real-Time Applications - Web Sockets

    Gap between expired data and instant data goes away.
    Eventually the refresh button goes away.


Challenges:
Dependency issues
Disorganized code
How test this?


Types of real-time connections:
  Native web sockets
  Socket.io (code wrapper)
  Pusher.js (streaming service of messages)
  Firebase (full backend service)


Code using:
  Grunt, NPM + Bower (package manager)
  Karma with Jasmine (unit testing)
  Protractor (end to end testing/integration testing)
  Pusher.js
  Angular Rails App to manage the web site administration

karma - tests multiple browsers
protractor
yeoman
bat a ring

netbrains
netbeans
sublime

angularUI
kendo UI
wijmo UI

angularFire (firebase)

 

Comments

Popular posts from this blog

Upgrading to .NET8 from desktop versions 4.8.X

GHL Chat Bots for Webpage

GHL > Set website so shorter URL address