In order to create better applications, AngularJS allows you to define modules and controllers. Together, they handle the functionality of your applications.
- [Instructor] In order to create better applications,…AngularJS allows you to define…something called modules and controllers.…Together, they're going to handle the functionality…of your applications.…The module is a container for different parts…of your applications, and inside a module,…we can have different controllers.…Now, in order to a module to work,…you're going to need to connect the module…to our HTML using the ng-app directive…that we saw in the previous video.…Once we have a module, we can specify…one or more controllers.…
Controllers are pieces of code…that can handle some specific functionality…within a module.…So an application can have multiple controllers…that do different things.…In order to specify where a specific…controller handles functionality,…we can use the ng-controller directive.…A controller can also be defined…with different dependencies, and dependencies is just a name…for something that a controller needs in order to work.…One of the most common ways to initialize components…is by using a special variable called scope.…
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