Skip to content

HackYourFuture/AngularJS

Repository files navigation

AngularJS

Day 1: Controllers

Hello World

<body>
<div ng-app="firstApp">
	<div ng-controller="firstController as ctrl">
		{{ ctrl.message }}	
	</div>
</div>
</body>
angular.module('firstApp', [])
.controller('firstController', [firstController])

function firstController() {
	var vm = this
	vm.message = 'Hello World'
}

Documentation / Tutorials

Day 2: Services & Directives

Run a temporal server with brackets or installing python(2.x.x) and typunc in the command promp python -m SimpleHTTPServer

Day 3: Filters & Routes

// Replace X.Y.Z with the value of the angular version that you are using

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/angular-route.js" />
// app.js

angular.module("myApp", ["ngRoute"])

About

Class material from angularJS module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published