In this example the ng-switch
directive match the values with the numbers entered. If we type numbers from 1 to 4 then the numbers will match with the ng-switch-when
directive and entered number will show in the button with different background colors and if we enter any other number from 1 to 4 then the default section will execute by ng-switch-default
directive.