r/javascript • • Jan 04 '14

What to learn in 2014? AngularJS, learn it in 30 minutes with this tutorial

http://www.revillweb.com/tutorials/angularjs-in-30-minutes-angularjs-tutorial/
20 Upvotes

15 comments sorted by

4

u/Kryxx Jan 04 '14 edited Jan 04 '14

Angular is now on 1.2.7. This article is based on 1.0.7 which is quite old by now. Angular is quite new and it changes quite frequently so if anyone is interested I would recommend finding a more modern tutorial if possible.

First flaw I noticed:

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js" type="text/javascript"></script>

This should be:

<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js"></script>

Source

The rest of the tutorial seems good at a glance though.

-3

u/RevillWeb Jan 04 '14

type="text/javascript" yes, "type="text/javascript"" is no longer valid HTML5 mark-up. Keep an eye for more, up to date AngularJS tutorials.

5

u/Cocosoft Jan 04 '14

[type="text/javascript" is valid HTML5 mark-up.] (http://www.w3.org/TR/html5/scripting-1.html#attr-script-type)

2

u/NodeKid Jan 05 '14

However it is superfluous.

2

u/Kryxx Jan 04 '14

Also the http part. 2 slashes allows the browser to determine http or https.

21

u/frontsidebus Jan 04 '14

And I hate to burst your bubble, but you're not learning angular in 30 mins

3

u/[deleted] Jan 04 '14

Going through thinkster.io takes a few hours and that, imo, is the bare minimum to get going on anything serious in angular.

1

u/mclayton7 Jan 05 '14

I really liked this tutorial, but they don't have any screenshots of the code, which is something I enjoy.

2

u/[deleted] Jan 05 '14 edited Jan 05 '14

Not sure what you mean? For the videos all the code is directly below the video.

Edit: looking back I can see where my confusion may be coming from... I just noticed they added another tutorial, while that's great I meant to link to the "A better way to learn Angular" article.

-1

u/rd4 Jan 04 '14

My thoughts exactly

1

u/tforb Jan 05 '14

I made a sample MEAN stack application using Angular. It might help tie some things together for someone who has a little experience with Angular already.

1

u/[deleted] Jan 05 '14

I'm not too familiar with AngularJS but I find it to contain too much "magic" for me. I've had more luck learning EmberJS. Still though nice little tutorial, definitely didn't teach you the whole framework.

0

u/[deleted] Jan 04 '14

[deleted]

1

u/RevillWeb Jan 04 '14

No worries, I hope its of some use, AngularJS is an awesome framework!