To work with AngularJS (NG), you need to first understand how the pieces fit together.
1) dependencies.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <!-- Angular works well with bootstrap; it can be downloaded from: <link rel="stylesheet" href="/libs/bootstrap/css/bootstrap.css" /> <script type="text/javascript" src="/libs/bootstrap/js/bootstrap.js"></script> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.min.js"></script> <!-- The following are required if you use angular-ui. Hosted locally, they can be downloaded from: https://github.com/angular-ui/angular-ui/tags --> <script type="text/javascript" src="/libs/angular-ui/build/angular-ui.js"></script> <link rel="stylesheet" href="/libs/angular-ui/build/angular-ui.css" /> <!-- The following are required if you use a ui-select2 element. They are shown as being hosted locally. They can be downloaded from: <script src="/libs/select2/select2.js"></script> <link rel="stylesheet" href="/libs/select2/select2.css" /> |
AngularJS >