In order to expand the functionality of AngularJS, you can use something called services. You can either add your own or use a few of the ones provided by AngularJS.
- [Instructor] In order to expand the functionality…of AngularJS, you can use something called services.…Now you can either add your own…or use a few of the ones provided by AngularJS.…One of the most important services…that come with AngularJS is the $http service…which allows you to handle Ajax requests…to load files like json documents.…Whenever you use Ajax to load a file…you're going to need to run a server.…That's because Ajax has to make a request…to a server for some data in order for it to work.…
A lot of times in web development…we're simply opening an HTML file in our browser…and working from that.…Now this is not going to work when we use the http service.…Now thankfully, if you've gone through the exercises video…you know I've created a simple server…and it should already be running when you begin each video.…Now the other thing to remember…is that a request to a file doesn't…normally stop the browser from doing other things.…This is why we call Ajax asynchronous.…
So Java script uses something called promises…
In this short, practical course, Ray Villalobos uses AngularJS to build a searchable directory—a project you can use as the basis for your own employee or user directory. He explains the MVC architecture underlying AngularJS, and the differences you can expect to encounter in Angular 2. Then he shows how to control the display of DOM elements and data; use services like $http and $routeProvider; modify content with filters; add two-way data binding; and work with routes and templates. Start watching, and learn the simple way to build your own complex web application with AngularJS.
- What is AngularJS?
- Binding data
- Defining modules and controllers
- Using the $http service to read a JSON file
- Controlling app logic with conditionals and loops
- Filtering content and lists
- Deep linking