angular-formly: Default Options
lessonDuration 2m 48sFree
angular-formly allows you to keep your forms as DRY as possible. The `optionsTypes` property is one way of composing your field configurations to keep your forms light-weight and DRY.
Browse
Find courses, lessons, articles, talks, and podcasts.
238 resources
Showing 217–238 · Page 10 of 10
lessonDuration 2m 48sFree
angular-formly allows you to keep your forms as DRY as possible. The `optionsTypes` property is one way of composing your field configurations to keep your forms light-weight and DRY.
lessonDuration 52sFree
angular-formly allows you to default the values of fields for your angular forms using the `defaultValue` property. To default the value of a field, you can either initialize the `model` with the default value, or use this `defaultValue` property on the field configuration.
lessonDuration 4m 27sFree
angular-formly provides a very simple API to dynamically change properties of your field (like disabled, hidden, and required) using the powerful expressionProperties property on your field.
lessonDuration 3m 14sFree
AngularJS validation can be tough, but angular-formly makes it extremely simple with a single validation API that enables basic and advanced field validation. You can specify a string expression, function that returns true/false, or a function that returns a promise which is resolved/rejected.
lessonDuration 5m 5sFree
The `type` functionality of the angular-formly library is powerful. In this lesson, see how you can use it to create custom templates for your field configurations and see what is available in the scope of each of your fields.
lessonDuration 5m 43sFree
angular-formly is a terrific abstraction on top of forms in Angular. This short introduction shows you how to get started with angular-formly.
lessonDuration 1m 19sFree
ngModelOptions in angular allows you to set several handy options of your ngModels, including the timezone for dealing with dates and times.
lessonDuration 3m 34sFree
With ngModelOptions in Angular 1.3 you can turn your model into a getter/setter function to have greater control over your model.
lessonDuration 3m 35sFree
Now in Angular 1.3 you can cause updates to your ngModels to only occur for a given even (blur, focus, click, etc); Debouncing means that only 1 action will be registered within a specific time. This is handy for text inputs, where an action triggers a process (such as asynchronous search). ngModelOptions allows you to debounce your ngModel inputs in AngularJS apps.
lessonDuration 5m 15sFree
Accessibility is an often overlooked **essential** feature of a web application. a11y Is a critical component of your AngularJS application. It should be considered **early** in an applications life. The ng-aria module gets you started quickly, adding instant upgrades to your Angular app's accessibility. Want to learn more about accessibility and AngularJS? Check out this great talk: [AngularJS Accessibility](https://www.youtube.com/watch?v=dmYDggEgU-s) by [Marcy Sutton](https://twitter.com/marcysutton) at ng-europe 2014
lessonDuration 1m 6sFree
With the release of AngularJS 1.3, we get some handy additions to forms, including a submitted state and the ability to bind input field names to an expression.
lessonDuration 4m 48sFree
ngMessages works great with AngularJS's ngAnimate and makes the appearance of your messages more awesome.
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 2m 39sFree
One really handy trick with angular's ng-messages module is the ability to reuse messages with ease. With reuse comes the need to override messages for specific use cases.
lessonDuration 2m 52sFree
In AngularJS 1.3 there is a nice shorthand for `$q.defer()`. In fact, it removes the need for calling `defer` at all!
lessonDuration 5m 33sFree
AngularJS's two-way binding is one of the "killer features" of the framework. The problem is that too many bindings can cause performance issues! Many times, all you need to do is bind a single time to get the data to display, and don't need dynamic two-way binding. In Angular 1.3, they've added new syntax to enable one-time data bindings.
lessonDuration 3m 50sFree
Filters in AngularJS can be a big performance hog. As of Angular 1.3, filters are "stateless" by default. This means that given the same input, a filter will not even run, and simply return the previous value.
lessonDuration 2m 42sFree
With Angular 1.3 you now have access to `$scope.$watchGroup`. This allows you to monitor an array of expressions for change. This is useful when you want to perform the some logic when any item in a group changes.
lessonDuration 4m 49sFree
[AngularJS Batarang](https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en) is a powerful Chrome extension that makes your developer tools "Angular aware".
lesson
In React 19, we can easily add a title tag like "Starship Deets" which then appears in the head section of the HTML even when we render it inside our components. This method also applies to meta tags such as character set and viewport settings, which are also lifted to the head section automatically. This is an awesome feature because it maintains the same composition style we are familiar with in React components. It simplifies the handling of HTML head elements without needing extra setups like `useEffect` for accessing the head section. Even in situations where our components are rendering within a body element, like within a div, we can manage our head content directly within our components. React takes care of hoisting these elements where they need to go.
lesson
In React 19, managing script tags efficiently within components can lead to performance enhancements and simpler code structures. Originally, using script tags directly in a React component involved complex setups, like using `useEffect` to dynamically add JavaScript code. For instance, a component might dynamically inject script tags to load external widgets. This approach, while functional, resulted in multiple script tags and duplicate iframe elements. This duplication not only cluttered the output but also negatively impacted performance by loading scripts multiple times. The workaround for this would be to manually hoist any common scripts and maybe load them when they weren't needed by any components. With React 19 we now have a more effective method. This involves directly placing the script tag within the React component's return statement. This approach ensures that React handles the script loading, avoiding the duplication of script tags. By implementing the script tags this way, the loading initiator becomes React DOM, which efficiently manages script loading and deduplication. This setup prevents multiple requests for the same script when the component is rendered multiple times, enhancing the overall application performance. Furthermore, directly embedding the script tag simplifies the code, making the component cleaner and more maintainable.
lesson
Let's learn how to dynamically manage title tags in React 19 applications. Rendering `<title>` dynamically is simple enough, however, a challenge arises when multiple title tags are present in the document, which can lead to issues with screen readers and search engine optimization (SEO). The solution presented involves ensuring that only one title tag is rendered at a time by using conditional rendering. Also we need to make sure to have a single string within the title tag using a template literal, ensuring our HTML remains valid and optimized.