Upgrade to remove ads
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.

Angular

        Help!  

Question
Answer
The basic building blocks of an Angular application are:   NgModules, which provide a compilation context for components, NgModules collect related code into functional sets.  
🗑
_____ define views   Components, which are sets of screen elements that Angular can choose among and modify according to your program logic and data. Every app has at least a root component.  
🗑
_____ use services   Components, which provide specific functionality not directly related to views. Service providers can be injected into components as dependencies, making your code modular, reusable, and efficient.  
🗑
Both components and services are simply classes, with _____ that mark their type and provide metadata that tells Angular how to use them.   decorators  
🗑
Metadata for a component class   Which associates it with a template that defines a view. A template combines ordinary HTML with Angular directives and binding markup that allow Angular to modify the HTML before rendering it for display.  
🗑
Metadata for a service class   Which provides the information Angular needs to make it available to components through Dependency Injection (DI).  
🗑
@Component + ?   The @Component decorator identifies the class immediately below it as a component, and provides the template and related component-specific metadata.  
🗑
What are Decorators?   Decorators are functions that modify JavaScript classes. Angular defines a number of such decorators that attach specific kinds of metadata to classes, so that it knows what those classes mean and how they should work.  
🗑
@Injectable + ?   A service class definition is immediately preceded by the @Injectable decorator.  
🗑
What does service class do?   For data or logic that is not associated with a specific view, and that you want to share across components, you create a service class.  
🗑
Router NgModule is a _____   service  
🗑
What is NgModule   An NgModule is a container for a cohesive block of code dedicated to an application domain, a workflow, or a closely related set of capabilities.  
🗑
What does NgModule contains   It can contain components, service providers, and other code files whose scope is defined by the containing NgModule.  
🗑
Modules' importnat properties   delcarations(componeents, directives, pipes), exports, imports, providers(often specified at component level), bootstrap  
🗑
host view   When you create a component, it is associated directly with a single view, called the host view. The host view can be the root of a view hierarchy, which can contain embedded views, which are in turn the host views of other components.  
🗑
How to inject data in Angular   In Angular, you can inject data only via a constructor’s arguments. If you see a class with a no-argument constructor, it’s a guarantee that nothing is injected into this component.  
🗑


   

Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
 
To hide a column, click on the column name.
 
To hide the entire table, click on the "Hide All" button.
 
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
 
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.

 
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how
Created by: zhangtai
Popular Computers sets