-
Notifications
You must be signed in to change notification settings - Fork 0
/
$anchorScroll.html
31 lines (24 loc) · 2.47 KB
/
$anchorScroll.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<html>
<head>
<title>My AngularJS App</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script src="js/Table.js"></script>
<script src="js/filter.js"></script>
<script src="js/AjaxService.js"></script>
<link href="css/mystyles.css" rel="stylesheet">
</head>
<body ng-app="mymodule" class="alignment">
<div ng-include="'welcome.html'"></div>
<div ng-controller = "tablecontroller">
<button id ="top" ng-click ="scroll('bottom')" class="btn btn-primary">Go to Bottom</button> <br/>
<div class="scroll">
AngularJS (commonly referred to as "Angular.js" or "AngularJS 1.X") is a JavaScript-based open-source front-end web application framework mainly maintained by Google and by a community of individuals and corporations to address many of the challenges encountered in developing single-page applications. The JavaScript components complement Apache Cordova, the framework used for developing cross-platform mobile apps. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) and model–view–viewmodel (MVVM) architectures, along with components commonly used in rich Internet applications. In 2014, the original AngularJS team began working on Angular (Application Platform).
The AngularJS framework works by first reading the HTML page, which has embedded into it additional custom tag attributes. Angular interprets those attributes as directives to bind input or output parts of the page to a model that is represented by standard JavaScript variables. The values of those JavaScript variables can be manually set within the code, or retrieved from static or dynamic JSON resources.
According to JavaScript analytics service Libscore, AngularJS is used on the websites of Wolfram Alpha, NBC, Walgreens, Intel, Sprint, ABC News, and approximately 12,000 other sites out of 1 million tested in October 2016.[3] AngularJS is the 10th most starred project of all time on GitHub.[4]
AngularJS is the frontend part of the MEAN stack, consisting of MongoDB database, Express.js web application server framework, Angular.js itself, and Node.js server runtime environment.
</div>
<button id="bottom" ng-click ="scroll('top')" class="btn btn-primary" > Go to top</button>
</div>
</body>
</html>