According to official angular documentation it declares a data-bound input property.
Let's have a look at this simple example.
The following example creates a component with two input properties.
Singleton is used in application when we want to store consistent unique data in an object disallowing creating a new instances of this object in the same time.
Here are the bullet points that defines Singleton.
Predicate is a delegate that always returns boolean value (True or False).
Predicate is used in conjunction with lambda expression.
Below example shows how can we simply replace static method with Predicate.
public class Program
public static void Main()
Predicate<int> isGreaterThan5Predicate = m => m > 5;
Console.WriteLine("Using Predicate to determine condition - 4 is not greater than 5 hence: " + isGreaterThan5Predicate(4));
Console.WriteLine("Using static method to determine condition - 6 is greater than 5 hence: " + isGreaterThan5(6));
public static bool isGreaterThan5(int number)
return number > 5? true: false;