Angular Routing
Built-in directivesDirectives are classes that add additional behavior to elements in your Angular applications. With Angular’s built-in directives, you can manage forms, lists, styles, and what users see.
The different types of Angular directives are as follows:
Components—directives with a template. This type of directive is the most common directive type.
Attribute directives—directives that change the appearance or behavior of an element, component, or another directive.
Structural directiv ...
Angular Routing
The HTML DOM is an Object Model for HTML. It defines:
HTML elements as objects
Properties for all HTML elements
Methods for all HTML elements
Events for all HTML elements
The HTML DOM is an API (Programming Interface) for JavaScript:
JavaScript can add/change/remove HTML elements
JavaScript can add/change/remove HTML attributes
JavaScript can add/change/remove CSS styles
JavaScript can react to HTML events
JavaScript can add/change/remove HTML events
The HTML DOM (Document Object Model)When ...
C# Core LINQ
CollectionsStandard CollectionsLINQ CollectionsIQueryable
The IQueryable interface is intended for implementation by query providers. It is only supposed to be implemented by providers that also implement IQueryable. If the provider does not also implement IQueryable, the standard query operators cannot be used on the provider’s data source.
The IQueryable interface inherits the IEnumerable interface so that if it represents a query, the results of that query can be enumerated. Enumeration cause ...
.Net Framework II C# Ba
JSON Config file
Schemea will auto downloaded from json.schemastore.org, so the name is important, appsetting.json
Object name should be the same as Class but with a carmel style.
Fundamentals ->Type SystemNamespace
declaring your own namespaces can help you control the scope of class and method names in larger programming projects. Use the namespace keyword to declare a namespace, as in the following example:
.NET uses namespaces to organize its many classes
Types -> Value TypesReal lit ...
.Net Framework II C# Ba
C# 2.0 introduced Anonymous methods, which allow code blocks to be written “inline” where delegate values are expected. For example, in the following statement, the FindAll method requires a delegate parameter:
1var innerPoints = points.FindAll(delegate(Point p) { return (p.X > 0 && p.Y > 0); });
In this case, the delegate determines if both the x and y coordinates are positive
C# 3.0 introduces lambda expressions, which provide a more concise, functional programming syn ...
.Net Framework II C# OOP
Var keywordAnonymous type properties are read only and they cannot be set. It just stored the information.
Method ExtensionAn Extension Method is:
It is a static method.
It must be located in a static class.
It uses the “this“ keyword as the first parameter with a type in .Net and this method will called by a given type instance on the client side.
The first parameter should be the same type as the class type your are expending to.
It also shown by VS intellisense. When we press the dot (.) af ...
.Net Framework I Basic
HistoryBefore .Net was released software de- elopers used COM(Component Object Model) allowed indi- iduals to build libraries of code that could be shared across di- erse programming languages.
Howe- er, COM was plagued by complicated infrastructure, a fragile deployment model, and was only possible on the Windows operating system.
Despite of its complexity countless applications were successful , Howe- er nowdays desktop applications, web sites, OS ser- ices, and libraries of reusable data acce ...
Front-End II CSS
Front End Introduction & Http
Project Introduction
Html elements
Span, a, p, br etc
More on HTML5 elements
Lab: Assignment to do a simple page layout
ASP.NET Web app
.NET Frame 472
HTML class1
Empty
Solution Explorer
Add HTML page
it will add to another line automatically
Heading tag is class
@copy; all right are reserverd
Span is a inline tag
it is used to format small chunks of data within another element
Inline element
Attribute
Name value
Img src=”../images/in.png width=60 ...
ASP I Entity Framework
LINQStandard CollectionsLINQ CollectionsIQueryable
The IQueryable interface is intended for implementation by query providers. It is only supposed to be implemented by providers that also implement IQueryable. If the provider does not also implement IQueryable, the standard query operators cannot be used on the provider’s data source.
The IQueryable interface inherits the IEnumerable interface so that if it represents a query, the results of that query can be enumerated. Enumeration causes the e ...
Front-End I CSS, Bootstrap
Cascading Style Sheet (CSS)
Styles define how to display HTML elements
Styles are normally stored in Style Sheets
Styles were added to HTML 4.0 to solve a problem
External style sheets can save a lot of work
External style sheets are stored in CSS files
Multiple style definitions will cascade into one
Benefit
Separates structure from presentation
Provides advanced control of presentation
Easy maintenance of multiple pages
Faster page loading
Better accessibility for disabled users
Ea ...