Adding custom methods to angular.module
lessonDuration 3m 31sFree
There are situations where you might want to add additional methods to `angular.module`. This is easy to accomplish, and can be a handy technique.
Browse
Find courses, lessons, articles, talks, and podcasts.
455 results for "angular"
Showing 361–384 · Page 16 of 19
lessonDuration 3m 31sFree
There are situations where you might want to add additional methods to `angular.module`. This is easy to accomplish, and can be a handy technique.
lessonDuration 4m 13sFree
ng-messages is a directive added in AngularJS 1.3 that is used to display messages to the user. This is usually in relation to form error messages, and cleans up the syntax required to show feedback messages to the user.
lessonDuration 3m 42sFree
Lodash has an enormous amount of utility functions for dealing with collections and objects in javascript. You can use it in your AngularJS applications to "debounce" user input, or add delay between user actions. This is a common technique for text input to hold firing service calls until the user stops typing for a fraction of a second.
lessonDuration 5m 8sFree
You can build single page applications with JQuery and/or AngularJS. In this lesson, John will look at some of the fundamental differences between the two approaches.
lessonDuration 1m 13sFree
In this lesson, John shows you how to use `angular.bootstrap` as an alternative approach to initializing your application without using `ng-app`.
lessonDuration 3m 9sFree
In this episode John takes a look at `angular.copy` and how you can use it for non-destructive form editing. Instead of binding to a value directly, we make a deep copy of that object and bind to the copy for presentation. Updates to the data are then "saved" to the original object to persist changes.
lessonDuration 4m 3sFree
An AngularJS promise is a mechanism that lets you defer a stated action or series of actions at an earlier point of time until you explicitly declare that promise to be fulfilled (or resolved). Promises are useful for asynchronous operations. This video introduces the basic way to declare and resolve promises.
lessonDuration 5m 18sFree
Testing is a first class citizen in AngularJS. It is at its heart and soul. This lesson demonstrates using Karma to write a simple unit test for a Filter.
lessonDuration 3m 41s
We want our users to have more power by uploading and downloading files to the tasks they create. In this lesson, we'll start creating the functionality that will allow our users to upload files. I went ahead and created the UI and click handler for this feature so we can focus on the actual file uploading. We'll use the browser's `<input type="file">` to select files from our device and then we'll use Cloud Storage methods to upload the file to our storage bucket.
lessonDuration 3m 4s
Select boxes (aka dropdown lists) are a bit different than normal text input boxes. We’re not just rendering a single value, but rather we have a list of values and according text representations which are presented to the user. In this lesson we extend our API object to also cope for such scenarios before we implement the dynamic rendering and databinding of our select box.
lessonDuration 3m 56s
In this we will generalize our component so that it can take a generic data object which serves as the “API” for dynamically creating our form. We will also see how we can leverage that new structure to render different HTML form input types, such as “text” and “number."
lessonDuration 5m 32s
Allow the user to control the view of the toggle component. Break the toggle component up into multiple composable components that can be rearranged by the app developer.
lessonDuration 2m 58s
One thing that we can do is to add styles directly to HTML elements that live within our component. However, in this lesson we see that style classes added to your template HTML within your component get applied to an inner `<div>` and not your component host. We will learn how to use `:host(...)` and `@HostBinding` to add styling directly to the component host itself.
lessonDuration 6m 38sFree
JSON from server often exposes raw data you have to transform to present to your end users. In this lesson, we cover a few solutions to make it happen.
lessonDuration 5m 16sFree
Angular's $cacheFactory can be used on its own or to customize the behavior of $http calls. This lesson introduces the API and shows how to integrate $cacheFactory into your project.
lessonDuration 6m 3sFree
When you minify your code with a tool like Uglify, the resulting minified file will rename variables. This is a problem for AngualrJS, which uses parameter names to provide injected dependencies. You **could** use the array notation manually, but *no human should ever have to suffer this fate*, **or** you could use [ng-annotate](https://github.com/olov/ng-annotate) with Grunt, and let your helper robots get the job done instead.
lessonDuration 9m 31sFree
Since React is only interested in the V (view) of MVC, it plays well with other toolkits and frameworks. This includes [AngularJS](https://egghead.io/technologies/angularjs) and [D3](https://egghead.io/technologies/d3).
lessonDuration 6m 10sFree
Firebase provides a real-time syncing backend for your AngularJS applications in very few lines of code. In this lesson, you'll learn how to get started integrating it into your app.
lessonDuration 4m 5sFree
In this lesson, John covers the use of AngularJS's `$http` service for making requests and handling responses from external web services
lessonDuration 8m 40sFree
A brief overview of using element in an AngularJS directive, and how to target one without jquery, and also how to use replace and compile function
lessonDuration 2m 8sFree
Using Angular's `toSignal` function with the HTTP client enables components to reactively fetch and display data from external services. This approach simplifies code and handles undefined initial values, but note that `toSignal` immediately subscribes and makes the HTTP request when used. So, keep in mind if you're using it in a component or some root level service.
lessonDuration 2m 14s
We'll evaluate 2 good practices when adding a new task. First, we'll show the users a toast alert to notify them that their document was saved in the database. We'll do this with a toast component that ionic makes available to us And second, we'll use Angular's router to navigate the user back to the task list.
lessonDuration 4m 14sFree
When you create reusable React components, you want to make sure that people use them correctly. The best way to do this is to use TypeScript in your codebase to give you compile-time checking of your code. But if you’re not using TypeScript, you can still use PropTypes to get runtime validation. Between you and me, when I was still doing AngularJS work, I was so envious of this feature, that [I tried to build it into AngularJS](https://github.com/angular/angular.js/issues/11657). In this lesson we’ll learn how PropTypes work, why they’re not enabled in production, and how to use the pre-built [prop-types](https://www.npmjs.com/package/prop-types) package from the React team.
lessonDuration 2m 49sFree
Rails makes an excellent choice for delivering data to AngularJS via REST apis. In this first lesson of a two part series, you'll see how to create a simple API for CRUD operations on TODOs using Rails. This isn't an introduction to Rails, and assumes you know the basics.