Tag:Block meeting

  • Talk about the configuration block and running block of angular


    The configuration block configures the module or service during the registration and configuration of the provider. This is the only place that can be modified before the app starts. In addition, only providers and constants can be injected into the config angular.module(‘myapp’,[]) .config(function($provider){ //** }) Is this code familiar? But do you know what the […]

  • Switch case of JS notes


    Switch statement to select one of multiple blocks of code to execute.Switch cannot handle greater than or less than grammar switch(n) { case 1: Execution code block 1 break; case 2: Execution code block 2 break; default: Code that does not execute at the same time as case 1 and case 2 } How it […]