AngularJS Developer Question:
Download Questions PDF

What is uppercase filter?


Uppercase filter converts a text to upper case text.

In below example, we've added uppercase filter to an expression using pipe character. Here we've added uppercase filter to print student name in all capital letters.

Enter first name:<input type = "text" ng-model = "student.firstName">
Enter last name: <input type = "text" ng-model = "student.lastName">
Name in Upper Case: {{student.fullName() | uppercase}}

Download AngularJS Developer Interview Questions And Answers PDF

Previous QuestionNext Question
What is a service?What is templates in AngularJS?