Ad

Sunday, August 23, 2015

Beginner Tutorial: Getting Started with AngularJS Hello World in Minutes



This demo tutorial (as opposed to follow-along tutorial) shows that you can hook up AngularJS to your html file in just minutes. Things we cover including how to start the ng-app, evaluate an expression {{ 1+2 }}, set up a controller, even debugging AngularJS.

AngularJS is a big topic and I am not the best developer to explain it. However, I want to demo that just like jQuery, AngularJS requires some initial setup. It takes a bit of muscle memory to get used to. After that, you can start your AngularJS app quickly, and take your time to get better at it.

FAQ


Why do we use a Mac?
Many modern web developers use Mac for various reasons. For beginners, it's easy to program on Macs. The configuration and setup is usually smooth. Some languages are preinstalled and readily available like Ruby and Python.

Why do we use Sublime?
It's a free powerful and clean-cut text editor, which makes it great for beginners.

Why do we use CDN or a hyperlink for the AngularJS source code?
It's easy, readily available, optimized. We don't have to download a copy of the source code and that's nice.

How to debug AngularJS?
AngularJS is JavaScript after all. For beginners, console.log is always your best friend. Use console.log often to make sure your scripts and code is connected.

Comments

  • We like to use a basic expression {{ 1+2 }} that AngularJS can compute to demonstrate that AngularJS code is connected successfully.  We think an AngularJS hello world example is to make this expression evaluate to 3.




2 comments:

  1. All the informed countries have been taking a stab at the best and least expensive wellsprings of energies. It is the vitality sources that give a nation its certainty and economy. Taught countries give it prime significance and as a matter of first importance balance out this since control disappointments and vitality break downs annihilate the nation's economy. It is instruction just that make them weight on this crucial issue.rewriting services

    ReplyDelete

React UI, UI UX, Reactstrap React Bootstrap

React UI MATERIAL  Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms.  Columns, grid