Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Angular Question Bank

Document preview thumbnail
Preview 1 out of 4 pages

What is Angular? Angular is a TypeScript-based open-source front-end web application platform. Difference between Angular JS and Angular? Angular JS is based of of JavaScript while Angular utilizes TypeScript, which is then transcribed to JavaScript. Technologies that you should include for your environment to create an Angular application? Node.JS - A JavaScript runtime built on Chrome's V8 JavaScript engine. NPM (Node Package Manager) - It is the default package manager for Node.JS. Angular CLI - A command line interface used to structure and build angular applications. What is Angular CLI? Angular CLI is a command line interface used to structure and build angular applications using Node.JS style modules. It also handles many common tasks for you, such as generating directives, services, and components. How to create a new Angular project using Angular CLI? ng new project-name (Folder structure) What is e2e? ng e2e project-name builds and serves an angular app then runs end-to-end testing end-to-end testing is a form of testing that tests an application's workflow from beginning to end (Folder structure) What is node_modules? library/dependencies that our angular project is going to use (Folder structure) What is src? where we will work most, contains the "single" html file with our view Where is the app folder located? What files does it contain (if created by Angular CLI) the app folder is located within the src folder it contains , .html, .ts, ., and files What is a decorator? A Decorator is a special kind of declaration that can be attached to a class declaration, method, accessor, property, or parameter. They are functions that are called at declaration. Decorators look a lot like annotations and are used to hold meta data in Angular 2+. What is a module? In JavaScript/TypeScript, "modules" refers to small units of independent reusable code. When you use the key word "export" on a class it becomes a module for another file to import later. What is @NgModule? What are some of the attributes inside of the @NgModule decorator? @NgModule takes a metadata object that describes how to compile a component's template and how to create an injector at runtime. declarations, imports, providers,

Content preview

Angular Question Bank iy iy




WhatiyisiyAngular? AngulariyisiyaiyTypeScript-basediyopen-sourceiyfront-
endiywebiyapplicationiyplatform.
DifferenceiybetweeniyAngulariyJSiyandiyAngular?
AngulariyJSiyisiybasediyofiyofiyJavaScriptiywhileiyAngulariyutilizesiyTypeScript,iywhichiyisiytheniyt
ranscribediytoiyJavaScript.
TechnologiesiythatiyyouiyshouldiyincludeiyforiyyouriyenvironmentiytoiycreateiyaniyAngulariyapplication?
Node.JSiy-iyAiyJavaScriptiyruntimeiybuiltiyoniyChrome'siyV8iyJavaScriptiyengine.
NPMiy(NodeiyPackageiyManager)iy-iyItiyisiytheiydefaultiypackageiymanageriyforiyNode.JS.
AngulariyCLIiy-iyAiycommandiylineiyinterfaceiyusediytoiystructureiyandiybuildiyangulariyapplications.
WhatiyisiyAngulariyCLI?
AngulariyCLIiyisiyaiycommandiylineiyinterfaceiyusediytoiystructureiyandiybuildiyangulariyapplicatio
nsiyusingiyNode.JSiystyleiymodules.iyItiyalsoiyhandlesiymanyiycommoniytasksiyforiyyou,iysuchiyasiygenerati
ngiydirectives,iyservices,iyandiycomponents.
HowiytoiycreateiyaiynewiyAngulariyprojectiyusingiyAngulariyCLI? ngiynewiyproject-name
(Folderiystructure)iyWhatiyisiye2e? ngiye2eiyproject-name
buildsiyandiyservesiyaniyangulariyappiytheniyrunsiyend-to-endiytesting
end-to-
endiytestingiyisiyaiyformiyofiytestingiythatiytestsiyaniyapplication'siyworkflowiyfromiybeginningiytoiyend
(Folderiystructure)iyWhatiyisiynode_modules?
library/dependenciesiythatiyouriyangulariyprojectiyisiygoingiytoiyuse
(Folderiystructure)iyWhatiyisiysrc?
whereiyweiywilliyworkiymost,iycontainsiytheiy"single"iyhtmliyfileiywithiyouriyview
Whereiyisiytheiyappiyfolderiylocated?iyWhatiyfilesiydoesiyitiycontainiy(ifiycreatediybyiyAngulariyCLI)
theiyappiyfolderiyisiylocatediywithiniytheiysrciyfolder
itiycontainsiyapp.component.css,iy.html,iy.ts,iy.spec.ts,iyandiyapp.module.tsiyfiles
Whatiyisiyaiydecorator?
AiyDecoratoriyisiyaiyspecialiykindiyofiydeclarationiythatiycaniybeiyattachediytoiyaiyclassiydeclaration,iy
method,iyaccessor,iyproperty,iyoriyparameter.iyTheyiyareiyfunctionsiythatiyareiycallediyatiydeclaration.iyDec
oratorsiylookiyaiylotiylikeiyannotationsiyandiyareiyusediytoiyholdiymetaiydataiyiniyAngulariy2+.
Whatiyisiyaiymodule?
IniyJavaScript/TypeScript,iy"modules"iyrefersiytoiysmalliyunitsiyofiyindependentiyreusableiycode.i
yWheniyyouiyuseiytheiykeyiywordiy"export"iyoniyaiyclassiyitiybecomesiyaiymoduleiyforiyanotheriyfileiytoiyimpor

tiylater.
Whatiyisiy@NgModule?iyWhatiyareiysomeiyofiytheiyattributesiyinsideiyofiytheiy@NgModuleiydecorator?
@NgModuleiytakesiyaiymetadataiyobjectiythatiydescribesiyhowiytoiycompileiyaiycomponent'siytem
plateiyandiyhowiytoiycreateiyaniyinjectoriyatiyruntime.
declarations,iyimports,iyproviders,iyandiybootstrapiyareiyalliyattributesiythatiycaniyfoundiyinsideiytheiy@Ng
Moduleiydecorator
Whatiyisiyaiycomponent?
Componentsiyareiytheiyfundamentaliybuildingiyblocksiyofiyouriyapplication.
Angulariydocumentation:iyAiycomponentiycontrolsiyaiypatchiyofiytheiyscreeniyrealiyestateiythatiyweiycouldiy
calliyaiyview,iyandiydeclaresiyreusableiyUIiybuildingiyblocksiyforiyouriyapplication.

Document information

Uploaded on
October 21, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
0
Items
48
Last sold
1 year ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions