30秒学会 Angular 片段 – ngIf else
*ngIf directive also supports else statement. <div *ngIf=”isLoading; else notLoading”>loading....
*ngIf directive also supports else statement. <div *ngIf=”isLoading; else notLoading”>loading....
Returns true if both functions return true for a given set of arguments, false otherwise. Use the lo...
Returns all indexes of a given element in the collection, or [-1] if it is not present. Use reflect....
Capitalizes the first letter of a string. Capitalize the first letter of the string and then add it ...
It is possible to add global event listeners in your Components/Directives with HostListener. Angula...
It is possible to use SVG tags in your Angular component, to create beautiful graphs and visualizati...
Initializes and fills a list with the specified value. Use list comprehension and range() to generat...
Creates a function that invokes fn with partials appended to the arguments it receives. Use the spre...
Checks if the first integer argument is divisible by the second one. Use the modulo operator (%) to ...
Converts an angle from radians to degrees. Use math.Pi and the radian to degree formula to convert t...