Uncategorized https://edupoly.in Indepth Training on ReactJS, Angular, Javascript, MERN,MEAN,Python,Java,Devops,AWS Mon, 13 May 2024 14:01:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://edupoly.in/wp-content/uploads/2024/03/edupoly-logo-light-150x150.png Uncategorized https://edupoly.in 32 32 2. Angular setup with Angular CLI https://edupoly.in/uncategorized/2-angular-setup-with-angular-cli/ https://edupoly.in/uncategorized/2-angular-setup-with-angular-cli/#respond Sun, 12 May 2024 15:05:35 +0000 https://edupoly.in/?p=189

Angular CLI (Command Line Interface) is a powerful development tool that simplifies the process of creating, managing, and deploying Angular applications. It provides a set of commands and utilities to scaffold, build, test, and serve Angular projects, making the development workflow more efficient. Here’s a detailed explanation of Angular CLI and its key features:

Installation:

To install Angular CLI, you need to have Node.js and npm (Node Package Manager) installed on your machine. Angular CLI is installed globally using npm (Node Package Manager). You can install it by running the following command:

npm install -g @angular/cli

Creating a new project:

Once Angular CLI is installed, you can create a new Angular project using the ng new command. For example:

ng new my-app

This command generates a new Angular project in a folder named “my-app” with the necessary file structure and configuration as shown below. It also installs all the necessary dependencies defined in the package.json file.

Project structure:

Angular CLI sets up a predefined project structure that follows Angular’s best practices. It includes folders for components, modules, services, assets, and more.

The main files are:

  • src/app: Contains the application’s components, services, and other Angular-related files.
  • src/assets: Stores static files like images, fonts, etc.
  • angular.json: The configuration file that defines build and project settings.
  • package.json: Lists project dependencies and scripts.

Development server:

Angular CLI provides a built-in development server that allows you to run your application locally during development.

Use the ng serve command to start the development server:

  1. Navigate to the workspace folder, such as my-project.
  2. Run the following command in a terminal:

ng serve –open

The ng serve command launches the server, watches your files, and rebuilds the app as you make changes to those files.

The –open (or just -o) option automatically opens your browser to http://localhost:4200/.

It also enables hot module replacement, which means any changes you make to your code will automatically trigger a rebuild and update the browser without a full page reload.

Generating components, services, and more:

Angular CLI offers generators to quickly create components, services, modules, and other Angular artifacts.

For example, you can create a new component using the ng generate component command:

ng generate component my-component

This command creates the necessary files for a new component, including the TypeScript code, HTML template, and CSS styles.

Building the application:

Angular CLI provides a command to build your application for production deployment. The build process optimizes your code and generates static files that can be deployed to a web server. You can run the following command:

ng build

Running ng build generates a production-ready build of your application in the dist/ directory.

The build process includes transpiling TypeScript to JavaScript, bundling and minifying files, and optimizing the application for better performance.

Testing the application:

Angular CLI supports unit testing out of the box.

For unit tests, you can use the ng test command to run your test suites using Karma, a popular test runner.

Quiz:

Which command is used to install Angular globally?

a) ng install angular

b) npm install -g @angular/cli

c) ng global add angular

d) npm add -g angular

What is the command to create a new Angular project?

a) ng create my-project

b) ng new my-project

c) ng generate my-project

d) ng init my-project

Which file contains the configuration settings for an Angular project created with Angular CLI?

a) package.json

b) angular.json

c) tsconfig.json

d) index.html

Correct answer: b) angular.json

Which command is used to start the Angular development server?

a) ng serve

b) npm start

c) ng start

d) npm serve

Which command is used to build a production-ready Angular application?

a) ng build

b) npm run build

c) ng compile

d) npm build

]]>
https://edupoly.in/uncategorized/2-angular-setup-with-angular-cli/feed/ 0 189
Margins https://edupoly.in/uncategorized/margins/ https://edupoly.in/uncategorized/margins/#respond Sat, 11 May 2024 03:58:30 +0000 https://edupoly.in/?p=141

CSS Margins

This property will create white space around the HTML element. That means it will create space outside the border. We can set different sizes for each side of the HTML element(top, right, bottom) if we give different sizes for each side, that will apply first top, right, bottom, left. 

Margin properties can have the following values:

  • Length in cm, px, pt, etc.
  • Width % of the element.
  • Margin calculated by the browser: auto.
]]>
https://edupoly.in/uncategorized/margins/feed/ 0 141
Why should we use CSS? https://edupoly.in/uncategorized/why-should-we-use-css/ https://edupoly.in/uncategorized/why-should-we-use-css/#respond Sat, 11 May 2024 03:57:57 +0000 https://edupoly.in/?p=139

There are three major benefits with CSS

  1. Solving big problems: Some HTML elements repeatedly occur in HTML. For that if we want to give styles no need to write repeatedly. By selecting that HTML element we can give styles at one place only. It will apply all over the HTML document wherever the selected element is. 
  2. Saves a lot of time: By writing style definitions externally, it will reduce the confusion to screen readers. It is a time saving process.
  3. Provide more attributes: CSS provides more detailed attributes than plain HTML to define the look and feel of the website. CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.
]]>
https://edupoly.in/uncategorized/why-should-we-use-css/feed/ 0 139
Introduction to CSS https://edupoly.in/uncategorized/introduction-to-css/ https://edupoly.in/uncategorized/introduction-to-css/#respond Sat, 11 May 2024 03:57:08 +0000 https://edupoly.in/?p=137 What is CSS?

CSS is the language we use to style an HTML document. Cascading Style Sheets(CSS) is a style sheet language that allows you to control the appearance of your webpages. It is generally used with HTML to change the style of web pages and user interfaces. CSS is used along with HTML and JavaScript in most websites to create user interfaces for Web applications and user interfaces for many mobile applications. For example,

]]>
https://edupoly.in/uncategorized/introduction-to-css/feed/ 0 137
Ordered list https://edupoly.in/uncategorized/ordered-list/ https://edupoly.in/uncategorized/ordered-list/#respond Sat, 11 May 2024 03:55:43 +0000 https://edupoly.in/?p=135

Ordered lists or numbered lists contain list items each prefaced by a number. We use a numbered list when the order or priority of items is important.

We use two kinds of elements for a numbered list:

  1. The ordered list element (<ol>) specifies a numbered list.
  2. List item elements (<li>) mark each item in the list.

The following markup defines a three-item numbered list:

]]>
https://edupoly.in/uncategorized/ordered-list/feed/ 0 135
Basic text formatting elements https://edupoly.in/uncategorized/basic-text-formatting-elements/ https://edupoly.in/uncategorized/basic-text-formatting-elements/#respond Sat, 11 May 2024 03:54:58 +0000 https://edupoly.in/?p=133

The first set of text elements that you will look at have been around in HTML for a while. Some of these elements represented text formatting in the past, but as HTML has evolved, the separation of presentation from broader semantics has meant that they now have more generalized significance.

The b element

The b element is used to offset a span of text without indicating any extra emphasis or importance. The examples given in the HTML5 specification are keywords in a document abstract and product names in a review. The b element is very simple: content contained between the start and end tags is offset from the surrounding content. You would usually do this by showing the content in bold, but you can use CSS to change the style applied to b elements. Below is the b element in use.

]]>
https://edupoly.in/uncategorized/basic-text-formatting-elements/feed/ 0 133
HTML Tables https://edupoly.in/uncategorized/html-tables/ https://edupoly.in/uncategorized/html-tables/#respond Sat, 11 May 2024 03:53:52 +0000 https://edupoly.in/?p=131 Website

A collection of web pages which are grouped together and usually connected together in various ways is often called a “website” or a “site”. Web Pages contain text, forms, audio and video files, streaming media, and sometimes games. Every website may look different, but all have one thing in common: Hyper Text Markup Language (also known as HTML), Cascading Style Sheets (CSS) regularly and Javascript. HTML files which contain HTML code are simple text files that produce web pages.  Just like a text file you create on a Windows computer works on Linux and Mac, webpages works on any other operating system

]]>
https://edupoly.in/uncategorized/html-tables/feed/ 0 131
HTML Building Blocks https://edupoly.in/uncategorized/html-building-blocks/ https://edupoly.in/uncategorized/html-building-blocks/#respond Fri, 10 May 2024 14:58:08 +0000 https://edupoly.in/?p=128 Elements
Attributes

]]>
https://edupoly.in/uncategorized/html-building-blocks/feed/ 0 128
Python Installation on Mac https://edupoly.in/uncategorized/python-installation-on-mac/ https://edupoly.in/uncategorized/python-installation-on-mac/#respond Tue, 07 May 2024 10:32:11 +0000 https://edupoly.in/?p=125 Please connect to or create an OptinMonster account to start using OptinMonster. This will enable you to start turning website visitors into subscribers & customers

]]>
https://edupoly.in/uncategorized/python-installation-on-mac/feed/ 0 125
Test Post From Manumits Academy https://edupoly.in/uncategorized/test-post-from-manumits/ https://edupoly.in/uncategorized/test-post-from-manumits/#respond Tue, 07 May 2024 10:24:38 +0000 https://edupoly.in/?p=122 Start with the basic building block of all narrative.Start with the basic building block of all narrative.Start with the basic building block of all narrative.Start with the basic building block of all narrative.Start with the basic building block of all narrative.Start with the basic building block of all narrative.Start with the basic building block of all narrative.

]]>
https://edupoly.in/uncategorized/test-post-from-manumits/feed/ 0 122