Duration: 16:41 min
Summary: Today we will dive deeper into filters by creating our own. In the previous videos, we discussed how to work with the predefined filters (uppercase, lowercase…). Now. We will use the module to build our own filter. We will create a filter called ‘canDrive’. This filter will use the age of a person to decide whether this person can or cannot drive. After creating the filter and its function, we will use ng-init to create an array of people. Then, the age of the person is fed into the filter to make the decision.