Tuesday, December 1, 2015

Js Library: Angular.js

JavaScript framework for building browser-based applications. Expressive and modular.

Features

  • Page Layout (View)
  • Style (Bootstrap)
  • Navigation (Routing)
  • Data access (two-way binding)
  • Form layout, validation, and submission
  • Custom Services for logic
  • Charts
  • Exception handling
  • Security
  • Unit testing

Basics

  • Utilizes MVC pattern
  • View contains HTML and Angular directives
  • Controller instantiates the model and has action methods

Project Structure

  • app (subfolders for each feature)
  • common (subfolders for services)
  • css
  • fonts
  • images
  • js (subfolders for external libraries)

Index

<!DOCTYPE html>

<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>Page title</title>
</head>

<body ng-app>

</body>

</html>

Directives

ng-app
ng-controller