AngularJS: most basic html/js

see this location: https://developers.google.com/speed/libraries/devguide


<!DOCTYPE html>
<html ng-app>
<body>
<h1>Adding 1 + 2 to give {{1 + 2}}</h1>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js">
</script>
</body>
</html>

 

Rather than getting it at runtime, you could download to a preferred location (PowerShell)…


$angularFolder = "D:\sandbox\AngularJs\Start01\common"
$url = "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/"
$fileName = "angular.min.js"
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile("$url/$fileName", "$angularFolder/$fileName")

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s