Home
Search results “Angular send http options”
Angular httpclient post example
 
09:39
In this video we will discuss posting data to the server using Angular HttpClient service. To issue a POST request to the server, we use HttpClient service post() method. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/07/angular-httpclient-post-example.html Slides http://csharp-video-tutorials.blogspot.com/2018/07/angular-httpclient-post-example-slides.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 34824 kudvenkat
Angular 4/5 HTTP GET and POST requests tutorial
 
17:17
Angular 5 fetching data using HTTP GET and Saving data using HTTP POST requests. Also fix CORS by setting allow-control-allow-origin using http interceptor. Git Repo of this project * https://github.com/techsithgit/ng5-http-get-post Article and code samples from this tutorial * techsith.com\ Please be my patreons on patreaon * https://www.patreon.com/techsith Follow me for technology updates * https://facebook.com/techsith * https://twitter.com/techsith1 Help me translate this video. * http://www.youtube.com/timedtext_video?ref=share&v=MN2WkxPnGTo
Views: 142590 techsith
Angular 7 Call Rest API using Get with Params and POST
 
26:50
In this tutorial, we will see how to call a External API from Angular using the HttpClient. We will see : 1. GET Request : We will call a sample GET API without any parameters and to fetch and typecast the result to display in a table grid. 2. GET Request With Parameters : Here we will call a sample GET API with parameters using the HttpParams in Angular. Here we will call the API and send the required parameter in the GET request and display the data in the table grid. 3. POST Request : Finally, we will see the POST method, in which we will POST a object data to a sample POST API and the API will return the result after Posting the data. And finally we will display the result. And , last but not the least, we will also see how to solve the undefined error of an object by making it Nullable in the HTML , thus solving the error.
Views: 25657 Techie Ocean
REST Web Services 06 - Method Idempotence
 
12:02
Website: http://javabrains.koushik.org/courses/javaee_jaxrs/lessons/Idempotence-In-HTTP-Methods Idempotence. Yes, that's a word. And it's an important property of HTTP methods according to the specifications.
Views: 351780 Java Brains
Angular input change detection using property setter
 
07:11
In this video we will discuss how to detect and react when component input property value changes using a property setter. In our previous video we discussed, detecting and reacting to INPUT property changes using ngOnChanges life cycle hook. In this video we will discuss doing the same using a Property Setter instead. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/03/angular-input-change-detection-using.html Slides http://csharp-video-tutorials.blogspot.com/2018/03/angular-input-change-detection-using_21.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists Detecting and reacting to Input property changes using Property Setter // Private backing field for the property private _employee: Employee; // This property setter is called anytime the input property changes // Notice the code here logs the previous and current employee names @Input() set employee(val: Employee) { console.log('Previous : ' + (this._employee ? this._employee.name : 'NULL')); console.log('Current : ' + val.name); this._employee = val; } // This getter is called when reading and displaying data get employee(): Employee { return this._employee; } At this point you might be thinking, there are 2 ways to detect and react to Input property changes (Property Setter and ngOnChanges life cycle hook). What is the difference between the two and when to use one over the other. We will answer these 2 questions in our next video.
Views: 15488 kudvenkat
Configure a proxy for your API calls with Angular CLI
 
03:46
During development, you often end up in the situation where you have your backend API server running at one address (i.e. localhost:3000) while your frontend development server runs on another (i.e. localhost:4200). In this video we will learn how to configure your Angular CLI setup to get the best development experience, by proxying your API calls to the correct backend server.
Views: 72354 Juri Strumpflohner
Sharing Data between Components in Angular
 
05:19
Fully documented lesson at https://angularfirebase.com/lessons/sharing-data-between-angular-components-four-methods/ In this episode, I am going to show you four different ways to share data between Angular components. Parent to Child the Input Decorator When you declare a variable with the Input decorator in the child component, it allows that variable to be received from a parent template. In this case, we define a message variable in the parent, then use square brackets to pass the data to the child. Now the child can display this data in its own template. Child to Parent via ViewChild ViewChild allows a one component to be injected into another, giving the parent access to its attributes and functions. One caveat, however, is that child won't be available until after the view has been initialized. This means we need to implement the AfterViewInit lifecycle hook to receive the data from the child. In the AfterViewInit function we can access the message variable defined in the child Child to Parent via Output and EventEmitter Another way to share data is to emit data from the child, which can be listed to by the parent. This approach is ideal when you want to share data changes that occur on things like button clicks, form entires, and other user events. In the child, we declare a messageEvent variable with the Output decorator and set it equal to a new event emitter. Then we create a function named sendMessage that calls emit on this event with the message we want to send. Lastly, we create a button to trigger this function. In the parent, we create a function to receive the message and set it equal to the message variable. The parent can now subscribe to this messageEvent that's outputted by the child component, then run the receive message function whenever this event occurs. Share data between any components When passing data between components that lack a direct connection, such as siblings, grandchildren, etc, you should you a shared service. When you have data that should aways been in sync, I find the RxJS `BehaviorSubject` very useful in this situation. The main benefit that a BehaviorSubject ensures that every component consuming the service receives the most recent data. In the service, we create a private BehaviorSubject that will hold the current value of the message. We define a currentMessage variable handle this data stream as an observable that will be used by the components. Lastly, we create function that calls next on the BehaviorSubject to change its value. The parent, child, and sibling components all receive the same treatment. We inject the DataService in the constructor, then subscribe to the currentMessage observable and set its value equal to the message variable. Now if we create a function in any one of these components that changes the value of the message. when this function is executed the new data it's automatically broadcast to all other components. That's it for data sharing. See you next time.
Views: 213165 Fireship
Angular select options from array
 
07:54
Text version of the video http://csharp-video-tutorials.blogspot.com/2018/01/angular-select-options-from-array.html Slides http://csharp-video-tutorials.blogspot.com/2018/01/angular-select-options-from-array-slides.html Angular CRUD Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video, we will discuss, how to get the select list options from an array in the component class, instead of having them hard-coded in the HTML. Step 1 : Create the Department class. Add a TypeScript file to the models folder. Name it department.model.ts. Copy and paste the following code. Notice the Department class has 2 properties - id and name of the department. export class Department { id: number; name: string; } Step 2 : Import the Department class. Include the following import statement in create-employee.component.ts file import { Department } from '../models/department.model'; Step 3 : Include the following array of departments in CreateEmployeeComponent class in create-employee.component.ts file departments: Department[] = [ { id: 1, name: 'Help Desk' }, { id: 2, name: 'HR' }, { id: 3, name: 'IT' }, { id: 4, name: 'Payroll' } ]; Please note : The "Department" type is not required for the application to work, but it adds great value during development. Using it provides us intellisense, error checking and type saftey. For the HTML used in the video, please refer to my blog link below http://csharp-video-tutorials.blogspot.com/2018/01/angular-select-options-from-array.html Code explanation: 1. On the "option" element we are using ngFor structural directive to loop over the array of departments we have in the "departments" property of the component class 2. For each "Department" object in the "departments" array, we get an option. 3. The option value is the department id and the display text is the department name 4. Notice the square brackets around the [value] property. This is property binding in Angular. We discussed property binding in detail in Part 9 of Angular 2 tutorial. If you remove the square brackets the value for each option will be the literal text "dept.id" instead of the department id (1 or 2 or 3 etc.) Property binding in Angular https://www.youtube.com/watch?v=RGYfTx9AAQA&list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6&index=9 5. To display the deprtment name we are using interpolation. We discussed interpolation in Part 8 of Angular 2 tutorial. Interpolation in Angular https://www.youtube.com/watch?v=2FkkAqFWRk8&list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6&index=8 6. Since ngFor is a structural directive there is an asterisk before it. 7. Structural directives modify the DOM, i.e they add or remove the elements from DOM. Adding and removing elements from DOM is different from showing and hiding. We will discuss all these in detail in our upcoming videos. At this point, when we select a department, the respective department id is included in the Angular generated form model. Along the same lines, when we click the "Save" button the respective department id is logged to the console. Please note : It is important that we include the ngFor directive on the element that we want to be repeated. In our case we want an option element for each department we have in the array. So we included the ngFor directive on the option element. If we instead include the ngFor directive on the "div" element that has the bootstrap "form-group" class, we get 4 department dropdownlists. That is one for each department in the array. So it is important we include the ngFor directive on the right element.
Views: 60216 kudvenkat
HTTP GET PUT POST DELETE
 
12:13
In this video we will discuss HTTP PUT, POST and DELETE verbs. Text version of the video http://csharp-video-tutorials.blogspot.com/2016/08/http-get-put-post-delete.html Slides http://csharp-video-tutorials.blogspot.com/2016/08/http-get-put-post-delete_30.html All Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All ASP.NET Web API Text Articles and Slides http://csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html
Views: 376295 kudvenkat
Angular httpclient put example
 
12:46
In this video we will discuss updating data on the server using Angular HttpClient service. We update data by issuing a PUT request. To issue a PUT request, we use HttpClient service put() method. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/07/angular-httpclient-put-example.html Slides http://csharp-video-tutorials.blogspot.com/2018/07/angular-httpclient-put-example-slides.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 12131 kudvenkat
Data filtering in angular component
 
09:36
In this video we will discuss implementing the data filter logic in an Angular component so we have better control on when that code should and shouldn't execute. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/05/data-filter-in-angular-component.html Slides http://csharp-video-tutorials.blogspot.com/2018/05/data-filter-in-angular-component-slides.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists list-employees.component.ts : The code is commented and self-explanatory export class ListEmployeesComponent implements OnInit { employees: Employee[]; // Use this property to stored filtered employees, so we do not // lose the original list and do not have to make a round trip // to the web server on every new search filteredEmployees: Employee[]; private _searchTerm: string; // We are binding to this property in the view template, so this // getter is called when the binding needs to read the value get searchTerm(): string { return this._searchTerm; } // This setter is called everytime the value in the search text box changes set searchTerm(value: string) { this._searchTerm = value; this.filteredEmployees = this.filterEmployees(value); } constructor(private _employeeService: EmployeeService, private _router: Router, private _route: ActivatedRoute) { } ngOnInit() { this.employees = this._employeeService.getActiveEmployees(); this.filteredEmployees = this.employees; } filterEmployees(searchString: string) { return this.employees.filter(employee = > employee.name.toLowerCase().indexOf(searchString.toLowerCase()) !== -1); } } list-employees.component.html : To display the filtered list of employees, in the view template bind to the filteredEmployees property instead of employees property. < div *ngFor="let employee of filteredEmployees" > < div (click)="onClick(employee.id)" class="pointerCursor" > < app-display-employee [employee]="employee" #childComponent > < /app-display-employee > < /div > < >
Views: 24935 kudvenkat
Angular forms tutorial
 
17:29
In Part 2 of Angular CRUD tutorial, we discussed performing the READ operation. In this video and in the next few videos we will discuss performing the CREATE operation. To understand the CREATE operation, let us build a form that help us create a new employee. For this we will use the createEmployee component that we already created in one of our previous videos in this series. Along the way, we will also discuss performing validation and displaying meaningful error messages to the user. There are 2 ways to create forms in Angular 1. Template Driven Forms 2. Model Driven Forms (Commonly called Reactive Forms) Both these approaches have their own pros and cons. For example, Template Driven forms are generally used to create simple forms. On the other hand, Reactive forms are used to create complex forms. For example, if you want to add form controls dynamically or perform cross-field validation we use the Reactive forms approach. There are several other differences, between Template driven and Reactive forms. We will discuss those differences in detail, in a later video. In this video, we will use the Template driven approach to build the "Create Employee" form. As the name implies, template driven forms are heavy on the template. This means we do most of the work in the view template of the component. Design "Create Employee" form. To keep this simple, at the moment we only have 2 fields (Full Name & Email). We will add the other fields like Gender, Department, Phone Number etc.. later. Also, at the moment, we only have textboxes on our form. In our upcoming videos we will discuss working with radio buttons, checkbox, dropdownlist etc For the form HTML, please refer to our blog using the below link. http://csharp-video-tutorials.blogspot.com/2017/12/angular-forms-tutorial.html Code Explanation: We are using Bootstrap CSS classes like panel, panel-primary, panel-heading, panel-title etc to style the form. There is no Angular here. If you are new to bootstrap, please click here to check out our Bootstrap tutorial using the following link http://csharp-video-tutorials.blogspot.com/2016/05/bootstrap-tutorial-for-beginners.html Consider the following line of code [form #employeeForm="ngForm" (ngSubmit)="saveEmployee(employeeForm)"] #employeeForm is called the template reference variable. Notice we have assigned "ngForm" as the value for the template reference variable employeeForm. So employeeForm variable holds a reference to the form. When Angular sees a form tag, it automatically attaches the ngForm directive to it. The ngForm directive supplements the form element with additional features. It holds all the form controls that we create with ngModel directive and name attribute, and monitors their properties like value, dirty, touched, valid etc. The form also has all these properties. We will discuss these properties at the individual control level and at the form level in detail in our upcoming videos. The ngSubmit directive submits the form when we hit the enter key or when we click the Submit button. When the form is submitted, saveEmployee() method is called and we are passing it the employeeForm. We do not have this method yet. We will create it in the component class in just a bit. The ngForm directive is provided by Angular FormsModule. So for us to be able to use it, we will have to import the FormsModule in our AppModule file (app.module.ts). So please make sure to include the following import statement. Also include "FormsModule" in the imports array of @NgModule decorator. import { FormsModule } from '@angular/forms'; If "FormsModule" is not imported you will see the following error in the browser developer tools there is no directive with exportas set to ngform The ngModel directive is used for creating two-way data binding i.e to keep the HTML element value and it's corresponding component property in sync. We discussed two-way data binding in detail in our Angular 2 course. Use the link below to watch two-way data binding video. https://www.youtube.com/watch?v=aBf1nLGuVz8&index=15&list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Text version of the video http://csharp-video-tutorials.blogspot.com/2017/12/angular-forms-tutorial.html Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-forms-tutorial-slides.html Angular CRUD Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 72282 kudvenkat
HTTP Request Response Headers Tutorial In Detail | HTTP Headers Tutorial
 
39:01
This is a presentation on HTTP Headers. In this tutorial you will learn about HTTP Request and response headers from basics in detail. I have exlain http request and http response flows. You will learn the following: What are HTTP Headers? Why HTTP Headers are used? How these headers are used? Tools to use for debugging Different Request Headers Different Response Headers If you wants to learn about HTTP in detail then you should refer the following https://www.youtube.com/watch?v=JFZMyhRTVt0 We will talk about the following Request headers: Accept Accept-Charset Accept-Encoding Accept-Language Authorization Cache-Control Connection Cookie Content-Length Content-Type Date Host If-Modified-Since If-Unmodified-Since If-Match If-None-Match Pragma Range User-Agent Via X-Forwarded For Then we will learn about following Response Headers Access-Control-Allow-Origin Accept-Ranges Age Allow Cache-Control Connection Content-Disposition Content-Encoding Content-Language Content-Length Content-Type Date Etag Expires Last-Modified Location Retry-After Server Set-Cookie Transfer-Encoding Vary Via WWW-Authenticate Strict-Transport-Security
Views: 55393 DumbTutorials
Angular Image Upload Made Easy
 
12:43
Uploading images is a common requirement in Angular apps and this video, we see how easy it is. Limited Offer! Join the Full Angular Course at 90% off: https://acad.link/angular Exclusive Discount also available for our Angular + Material + Angularfire Course: https://acad.link/ng-app Find the video and an article on our website: https://academind.com/learn/angular/snippets/angular-image-upload-made-easy Check out all our other courses: https://academind.com/learn/our-courses ---------- • Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content & discounts • Follow @maxedapps and @academind_real on Twitter • Join our Facebook community on https://www.facebook.com/academindchannel/ See you in the videos! ---------- Academind is your source for online education in the areas of web development, frontend web development, backend web development, programming, coding and data science! No matter if you are looking for a tutorial, a course, a crash course, an introduction, an online tutorial or any related video, we try our best to offer you the content you are looking for. Our topics include Angular, React, Vue, Html, CSS, JavaScript, TypeScript, Redux, Nuxt.js, RxJs, Bootstrap, Laravel, Node.js, Progressive Web Apps (PWA), Ionic, React Native, Regular Expressions (RegEx), Stencil, Power BI, Amazon Web Services (AWS), Firebase or other topics, make sure to have a look at this channel or at academind.com to find the learning resource of your choice!
Views: 148665 Academind
Angular component input property change detection
 
12:18
In this video we will discuss how to detect and react when component input property value changes. To detect and react when an input property value changes, we have 2 options. We can either use 1. Property Setter 2. ngOnChanges Life Cycle Hook If you are new to Angular Life Cycle hooks, please check out Part 24 from Angular 2 tutorial using the link below https://www.youtube.com/watch?v=RCLwwWQ8-V0&t=0s&index=24&list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 For the code used in the demo, please refer to the text article below http://csharp-video-tutorials.blogspot.com/2018/03/angular-component-input-property-change.html Next Video : Detecting and reacting to Input property changes using Property Setter Text version of the video http://csharp-video-tutorials.blogspot.com/2018/03/angular-component-input-property-change.html Slides http://csharp-video-tutorials.blogspot.com/2018/03/angular-component-input-property-change_20.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 22534 kudvenkat
Angular cli ng serve options
 
09:36
In this video we will discuss some of the common options that we can use with ng serve command. To see the list of all options that we can use with "ng serve" command use --help option ng serve --help The following page also shows all the options that can be used with ng serve https://github.com/angular/angular-cli/wiki/serve The following command, builds and launches the application in your default browser. ng serve --open Many of our channel subscribers have sent me emails saying their application is using Internet Explorer, but they want to use Google chrome instead. So thier question is how to change my default browser. Well that's simple and it really depends on the operating system you have. For example, on a Windows 7 operatin system here are the steps to change your default browser. 1. Click on the Windows Start Button and in the "Search programs and files" text box type: Control 2. Control Panel would appear in the list. Click on it. 3. In the "Control Panel" window, click on "Default Programs" 4. In the "Default Programs" window, click on "Set your default programs" 5. In the list of programs that appear, select the "Browser" that you want to be the default browser and then click on the link that says "Set this program as default" That's it. At this point, execute "ng serve --open" command and you will have your application launched in your specified default browser. Instead of using the full option name --open, you can also use it's alias -o The following table shows the common options, alias, default value and their purpose Option Alias Default Purpose --watch -w true Run build when files change --live-reload -lr true Whether to reload the page on change --open -o false Opens the url in default browser --port -p 4200 The port on which the server is listening --extract-css -ec Extract css from global styles onto css files instead of js ones Text version of the video http://csharp-video-tutorials.blogspot.com/2017/11/angular-cli-ng-serve-options.html Slides http://csharp-video-tutorials.blogspot.com/2017/11/angular-cli-ng-serve-options-slides.html Angular CLI Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CLI Text articles & Slides http://csharp-video-tutorials.blogspot.com/2017/10/angular-cli-tutorial-for-beginners.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 17130 kudvenkat
Angular 6 Basics 13 - Passing inputs to components
 
07:22
Access the full course here: https://javabrains.io/courses/angular_basics Learn how to pass data to your components to 'parameterize' them. Use the `@Input()` decorator to designate a component member variable as an input and thus configure the component API. Angular 6 Basics - Learn how to create Angular applications from scratch. Understand the Angular framework and learn how to use the features of the framework to create components and services. Use modules to organize your code. Build applications that call REST APIs and fetch data from a server. Implement routing to show multiple views with multiple URLs. This course requires no previous knowledge of Angular or AngularJS.
Views: 48228 Java Brains
Angular 5: How to Bind/Get selected value/Set Default  in SelectList
 
08:42
In this tutorial, we will see how to : 1. Bind the data to the select list in Angular 5/4 using ngFor 2. To get the selected value from the dropdown list 3. To set the default value of the dropdown list 4. Call a custom function on the change event of the dropdownlist
Views: 48722 Techie Ocean
Angular dev build vs prod build
 
10:46
In this video we will discuss the differences between a development build and a production build in angular. To generate a development build we can use either ng build OR ng build --dev To generate a production build we use ng build --prod Here are some of the differences between a development build and a production build in angular. Source Maps : Development build generate Source Maps where as production build does not. What are Source Maps To improve the performance, the application's JavaScript and CSS files are combined and compressed. It is extremely difficult to debug those compressed files. A source map holds information about the original files and can be used to map the code within a compressed file back to it’s original position in a source file. So with the help of these source maps we can easily debug our applications even after the the files are compressed and combined. By default, a development build produce source maps where as a production build does not. However, we can change this default behaviour by using --sourcemaps option along with the ng build command. It's alias is -sm. The following command produces a development build without source maps as we have set -sm option to false ng build --dev -sm false On the other hand, if you want source maps along with your production build set -sm option to true as shown below. ng build --prod -sm true Extracts CSS : With the development build global styles are extracted to .js files where as with the production build they are extracted to .css files. To change this default behaviour use --extract-css option or it's alias -ec with the ng build command. The following command produces a development build with global styles extracted to .css file(s) instead of .js ones. ng build --dev -ec true Minification & Uglification : A Prod Build is both minified and uglified, where as a Dev Build is not. What is Minification The process of removing excess whitespace, comments, and optional tokens like curly brackets and semicolons is called Minification. What is Uglification The process of transforming code to use short variable and function names is called uglification. The minified and uglified version of the file is smaller in size than the full version, resulting in faster response times and lower bandwidth costs. If you look at the bundles generated by the prod build, you will notice that they are minified and uglified. Notice, extra whitespaces, comments, and optional tokens like curly brackets and semicolons are removed. Also notice, the code is transformed by using short variable and function names. On the other hand, the bundles generated by the dev build, are not minified and uglified. Tree Shaking : A Prod build is Tree Shaked, where as a Dev build is not. What is Tree Shaking Tree shaking is the process of removing any code that we are not actually using in our application from the final bundle. It's one of the most effective techniques to reduce the application size. If you look at the bundles generated by the production build, they are significantly less in size compared with the bundles generated by the development build. This is beacause with the production build the code is tree shaked to remove dead code i.e the code that is not referenced by the application. Ahead-of-Time (AOT) Compilation : With a production build we get AOT (Ahead-of-Time) compilation, i.e the Angular component templates are pre-compiled, where as with a development build they are not. We will discuss Ahead-of-Time compilation in detail in our next video. The following table summarises the differences between a development build and a production build Feature Development Build Production Build Source Maps Yes No Extracts CSS .js file .css file Minifaction No Yes Uglification No Yes Tree Shaking No Yes AOT No Yes Text version of the video http://csharp-video-tutorials.blogspot.com/2017/11/angular-dev-build-vs-prod-build.html Slides http://csharp-video-tutorials.blogspot.com/2017/11/angular-dev-build-vs-prod-build-slides.html Angular CLI Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CLI Text articles & Slides http://csharp-video-tutorials.blogspot.com/2017/10/angular-cli-tutorial-for-beginners.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 24701 kudvenkat
Angular 2 Tutorial (2016) - HTTP (GET and POST to RESTful Service)
 
22:24
Want much more Angular 2? Also check out my brand-new Udemy course, which will go into much more detail than this video series. Get it now for only $15: https://www.udemy.com/the-complete-guide-to-angular-2/?couponCode=YOUTUBE_2 Angular 2 Tutorial on how to use the Angular 2 HTTP Service to connect to a RESTful service and send GET and POST requests, as well as how to handle responses. Want to get some 1-on-1 coaching with experienced developers? Have a look at Savvy: https://www.savvy.is/?ref=9fee2b (Discount Code 9fee2b) You can follow me on Twitter (@maxedapps), Facebook (https://www.facebook.com/academindchannel/) or visit our Website (https://www.academind.com). Source code for complete series available here: https://github.com/mschwarzmueller/angular-2-introduction.git Source code for individual videos (repo created and maintained by a viewer): https://github.com/bapatel1/Learning-Angular-2.0 Get into developing Angular 2 applications instantly! Please share, like and comment if you like the video! This course will teach you all the fundamentals of the current Angular 2 Beta and will prepare you to write actual Angular 2 web applications. We will cover Directives, Components, Template Syntax, Two-Way-Data Binding, Services, HTTP (GET and POST) and much more! In order to get the most out of this course be sure to use my prepared GitHub Repository as a Boilerplate: https://github.com/mschwarzmueller/angular-2-beta-boilerplate.git Have fun and please leave a like or comment if you like (or dislike) this video or this series!
Views: 241037 Academind
Token authentication in angular 4 with httpinterceptor
 
25:53
In this tutorial, we will see the use of http interceptors to add headers in the http request objects. We will add headers through the interceptors rather then repeating the code for adding headers. This tutorial is the continuation of the previous tutorial for Token based authentication in Angular 4 Here is the Link : https://www.youtube.com/watch?v=a43VJeFUCGY In the current video, we will see how to make a HttpClient POST and GET requests to the server API's. We had changed the http library to httpclient library. This is because for invoking the interceptors the http request should be through the HttpClient library else the interceptors won't be called. Thus we will be seeing how to play with interceptors which is nothing but the middle man between the client application and the server.
Views: 9824 Techie Ocean
Angular 8 Tutorial By Example: REST APIs, HttpClient GET, Components, Services & ngFor
 
12:35
In this tutorial, you'll learn by example how to send GET requests to REST API servers in your Angular 8 application using HttpClient. We’ll also learn how to use the basic concepts of Angular like components and services and how to use the ngFor directive to display arrays of data. This tutorial is accompanying this post https://www.techiediaries.com/angular-tutorial-example-rest-api-httpclient-get-ngfor/ We’ll be consuming a JSON API available from NewsAPI.org Throughout this tutorial, we are going to build a simple example from scratch using Angular CLI 8 and we’ll see how to use HttpClient to send GET requests to third-party REST API servers and how to consume and display the returned JSON data.
Views: 5036 Techiediaries
Booost 🚀 für deine Angular App mit Routing Animationen  👍 [TUTORIAL]
 
19:56
Unterstütze den Channel auf Patreon und erhalte zusätzliche Inhalte, Features und Funktionen für die Discord Community! 📣 Werde Patreon: http://bit.ly/UDPatreon 📣 Du suchst einen Hoster? http://bit.ly/MeinWebHoster (Affiliate Link) 📣 Den Channel untersützen! https://amzn.to/2K0HJ5q (Affiliate Link) 📣 Du hast Fragen? https://discord.gg/NV2NrXA Links aus dem Video: ► Live Demo: ► IDE Tutorial: http://bit.ly/WebDesignIDE 📣🎉🎉 VIELEN DANK AN DIE PATRONS 🎉🎉📣 CubexsOne(http://bit.ly/2TnSgc4) Meine Social Media Seiten: ► Homepage: http://bit.ly/1y4rvIA ► Facebook: http://on.fb.me/11N25Ve ► Youtube: http://bit.ly/1rPBJ9Y ► Twitter: http://bit.ly/1y4rMeD ► Instagram: http://bit.ly/1UjBLuD ► Twitch: http://bit.ly/29VyA7J ► Discord: https://discord.gg/NV2NrXA Wenn ihr euch für meine Ausrüstung, Software oder Bücher interessiert dann schaut einfach hier mal vorbei und unterstützt mich mit einem Kauf. ► Meine Ausrüstung(Affiliate Link): http://amzn.to/2ccEY0l ► Software(Affiliate Link): http://amzn.to/2c0Fc7r ► Bücher(Affiliate Link): http://amzn.to/2bTCfcU #Tutorial #WebEntwicklung #WebDesign Copyright by Johannes Schiel / Unleashed Design
Views: 968 Unleashed Design
Angular datepicker tutorial
 
10:12
In this video we will discuss 1. Why is not a good practice to use the browser built-in DatePicker control 2. Installing ngx-bootstrap 3. Using ngx-bootstrap datepicker in Angular Why is not a good practice to use the browser built-in DatePicker control : This is because the implementation of datepicker is different from browser vendor to vendor. This means our end users may have different experience depending on the browser they use. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/01/angular-datepicker-tutorial.html Slides http://csharp-video-tutorials.blogspot.com/2018/01/angular-datepicker-tutorial-slides.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 64385 kudvenkat
Edit form in angular
 
23:20
In this video we will discuss editing and updating data in Angular. To set the expectations right, we will be updating data on the client side. We will discuss persisting the data to a database table in our upcoming videos when we implement the server side service. We are going to modify "Create Employee Form" so it supports both 1. Creating a new employee 2. Editing and updating an existing employee Text version of the video http://csharp-video-tutorials.blogspot.com/2018/06/edit-form-in-angular.html Slides http://csharp-video-tutorials.blogspot.com/2018/06/edit-form-in-angular-slides.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 27263 kudvenkat
Angular CLI Create new project
 
08:18
In this video we will dscuss 1. How to create a new angular project from scratch using Angular CLI 2. Run the app 3. Run unit and end-to-end test In this course we will use Visual Studio Code as the editor. Visual Studio Code is free and you can use it on any platform - Windows, Mac or Linux. If you have not installed it already, please install it by downloading from the following link. https://code.visualstudio.com/download To create a new Angular Project, open Command Prompt as an Administrator and execute the following command. This command creates all the required files and also installs all the required packages. Depending on your computer and internet connection speed, this command takes a few minutes to complete. ng new MyFirstApp ng is the Angular CLI new for creating a new application MyFirstApp is the name of your angular application There are several options that we can use with "ng new". We will discuss all these options in our next video. Once the above command has completed successfully you will see the following messages. Installed packages for tooling via npm. Project 'MyFirstApp' successfully created. So what did this "ng new" command do A new folder with name MyFirstApp is created All the required configuration and source files are created. All the npm dependencies are installed in node_modules folder Unit and end-to-end tests are created The Karma unit test runner is configured The Protractor end-to-end test framework is configured We will discuss unit tests, end-to-end tests, Karma and Protractor in our upcoming videos. Please note that all these code and configuration files are created by the Angular CLI out of the box while still following the angular teams best practices and conventions. Now, go to the folder (MyFirstApp) that contains our angular project, by executing the following command. cd stands for change directory cd MyFirstApp Now execute the following command at the command prompt to open the project folder in Visual Studio Code. Notice there is a single space and a DOT after the word code. code . At this point in Visual Studio Code you will see all the Angular project files. Also notice node_modules folder, that conatins all the installed packages. We will discuss, what all these files are and their purpose in our upcoming videos. To run the project using Angular CLI, type the following command at the command prompt. This command builds the application and opens it in our default browser. The flag --open, launches our default browser and runs the application. By default the application runs on port 4200. We can change this port number if required. We will discuss how to do that in our upcoming videos. ng serve --open At the moment, the angular development server is running in watch mode, meaning when a file changes, those changes are automatically detected, compiled and the browser reloads to reflect the changes. This is called live reload. We can turn this live reload functionality off, if required. Again we will discuss how to do this in our upcoming videos. To stop the server, press CTRL + C while you are on the command prompt and then "Y" and ENTER key. This will stop the server. To run all the unit tests, use the following command ng test To run all the end-to-end tests, use the following command ng e2e We will discuss Unit tests, end-to-end tests and all the options we can use to run them using Angular CLI in our upcoming videos. Text version of the video http://csharp-video-tutorials.blogspot.com/2017/09/angular-cli-create-new-project.html Slides http://csharp-video-tutorials.blogspot.com/2017/09/angular-cli-create-new-project_27.html Angular CLI Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CLI Text articles & Slides http://csharp-video-tutorials.blogspot.com/2017/10/angular-cli-tutorial-for-beginners.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 70552 kudvenkat
Angular query params
 
10:18
In this video we will discuss Query String Parameters in Angular. Creating and reading Query String Parameters is somewhat similar to creating and reading required and optional route parameters. We discussed required and optional route parameters in Parts 43 and 44 of Angular CRUD tutorial. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/05/angular-query-params.html Slides http://csharp-video-tutorials.blogspot.com/2018/05/angular-query-params-slides.html Angular CRUD Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhXwcl3a6rIfAI7QmGYIkfK5 Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists Query parameters are usually used when you want the parameters on the route to be optional and when you want to retain those parameters across multiple routes. For example, on the LIST route, you search for a specific employee. You then click on one of the employees in the search results to view that specific employee details on the DETAILS route. At this point, when we navigate back to the LIST route we want to retain the search term used, so we can display the filtered list instead of the full employee list. Just like optional route parameters, query parameters are not part of the route configuration and therefore they are not used in route pattern matching. Passing query string parameters in code : We use the second argument of the Router service navigate() method to pass query string parameters. 1. Create an object with queryParams as the key. 2. The value is an object with key/value pairs. 3. The key is the name of the query parameter and the value is the value for the query parameter. this._router.navigate(['employees', employeeId], { queryParams: { 'searchTerm': this.searchTerm, 'testParam': 'testValue' } }); The query string parameters start with a question mark and are separated by & as you can see below. http://localhost:4200/employees/3?searchTerm=John&testParam=testValue Passing query string parameters in the HTML [a [routerLink]="['/employees']" [queryParams]="{ 'searchTerm': 'john', 'testParam': 'testValue'}"] List [/a] Preserve or Merge Query String Parameters : By default, the query string parameters are not preserved or merged when navigating to a different route. To preserve or merge Query Params set queryParamsHandling to either preserve or merge respectively. Preserve query string parameters in code this._router.navigate(['/employees', this._id], { queryParamsHandling: 'preserve' }); Please note : queryParamsHandling is available in Angular 4 and later versions. If you are using Angular 2, you would not have queryParamsHandling. You will have to use preserveQueryParams and set it to true. preserveQueryParams is deprecated since Angular 4. Merge query string parameters in code : this._router.navigate(['/employees', this._id], { queryParams: { 'newParam': 'newValue' }, queryParamsHandling: 'merge' }); Preserve query string parameters in the HTML : [a [routerLink]="['/list']" queryParamsHandling="preserve"] Back to List [/a] Merge query string parameters in the HTML : [a [routerLink]="['/list']" [queryParams]="{'newParam': 'newValue'}" queryParamsHandling="merge"] Back to List [/a] Next Video : How to read query params.
Views: 17519 kudvenkat
Angular setvalue and patchvalue methods
 
06:55
Text version of the video http://csharp-video-tutorials.blogspot.com/2018/09/angular-setvalue-and-patchvalue-methods.html Slides http://csharp-video-tutorials.blogspot.com/2018/09/angular-setvalue-and-patchvalue-methods_26.html Angular 6 Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhWNJaDgh0mfae_9xoQ4E_Zj Angular 6 Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2018/09/angular-6-tutorial-for-beginners.html Angular, JavaScript, jQuery, Dot Net & SQL Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd
Views: 29388 kudvenkat
Parsing the Body & Handling CORS | Creating a REST API with Node.js
 
15:53
Let's parse our request body, so that our RESTful API can receive and use data. And handle CORS to allow other clients to access our API. Limited Offer! Join the Full Node.js Course at 90% off: https://acad.link/nodejs Check out all our other courses: https://academind.com/learn/our-courses ---------- Full Playlist: https://academind.com/learn/node-js/building-a-restful-api-with/ Finished Code: https://academind.com/learn/node-js/building-a-restful-api-with/parsing-the-body-handling-cors/ ---------- • Go to https://www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content & discounts • Follow @maxedapps and @academind_real on Twitter • Join our Facebook community on https://www.facebook.com/academindchannel/ See you in the videos! ---------- Academind is your source for online education in the areas of web development, frontend web development, backend web development, programming, coding and data science! No matter if you are looking for a tutorial, a course, a crash course, an introduction, an online tutorial or any related video, we try our best to offer you the content you are looking for. Our topics include Angular, React, Vue, Html, CSS, JavaScript, TypeScript, Redux, Nuxt.js, RxJs, Bootstrap, Laravel, Node.js, Progressive Web Apps (PWA), Ionic, React Native, Regular Expressions (RegEx), Stencil, Power BI, Amazon Web Services (AWS), Firebase or other topics, make sure to have a look at this channel or at academind.com to find the learning resource of your choice!
Views: 83213 Academind
Angular form control valuechanges
 
08:16
In this video we will discuss how to monitor and react when a form control or form group value changes. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/10/angular-form-control-valuechanges.html Slides http://csharp-video-tutorials.blogspot.com/2018/10/angular-form-control-valuechanges-slides.html Angular 6 Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhWNJaDgh0mfae_9xoQ4E_Zj Angular 6 Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2018/09/angular-6-tutorial-for-beginners.html Angular, JavaScript, jQuery, Dot Net & SQL Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd Angular valueChanges Observable 1. Both FormControl and FormGroup classes inherit from the base AbstractControl class 2. AbstractControl class has valueChanges property 3. valueChanges property is an observable that emits an event every time the value of the control changes 4. To be able to monitor and react when the FormControl or FormGroup value changes, subscribe to the valueChanges observable
Views: 24132 kudvenkat
New Angular 4.3 HttpClient (Accessing REST Web Services With Angular)
 
39:14
#1 Online Course: Angular - The Complete Guide (http://codingthesmartway.com/courses/angular2-complete-guide/) In Angular 4.3 the new HttpClientModule has been introduced. This new module is available in package @angular/common/http and a complete re-implementation of the former HttpModule. The new HttpClient service is included in HttpClientModule and can be used to initiate HTTP request and process responses within your application. Learn how to use the new HttpClient service by following this step-by-step tutorial This is a CodingTheSmartWay.com tutorial Support us with just one cup of coffee: https://www.buymeacoffee.com/ctsw --------------------- Musik: Night Owl by Broke For Free is licensed under a Creative Commons Attribution License. (http://freemusicarchive.org/music/Broke_For_Free/Directionless_EP/Broke_For_Free_-_Directionless_EP_-_01_Night_Owl) DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!
Views: 78785 CodingTheSmartWay.com
Integrating Chart.js with Angular 5 with Data from an API
 
18:58
Written tutorial: https://goo.gl/v1dC9o Subscribe here and check out https://coursetro.com In this tutorial, we're going to connect to a public API to retrieve weather data, and then chart it out using Chart.js The github repo for this project: https://github.com/designcourse/angular-chartjs - - - - - - - - - - - - - - - - - - - - - - Subscribe for NEW VIDEOS weekly! My site: https://coursetro.com My personal FB account: http://fb.com/logodesigner Coursetro FB: http://fb.com/coursetro Coursetro's Twitter: http://twitter.com/designcoursecom Join my Discord! https://discord.gg/a27CKAF ^-Chat with me and others - - - - - - - - - - - - - - - - - - - - - - Who is Gary Simon? Well, I'm a full stack developer with 2+ decades experience and I teach people how to design and code. I've created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network. Now, I focus all of my time and energy on this channel and my website Coursetro.com. Come to my discord server or add me on social media and say Hi!
Views: 106179 DesignCourse
Angular 2 course wrap up and what's next
 
03:48
In this video we will wrap up Angular 2 course and also get an idea of what we plan to do next. So far in this Angular 2 course we discussed all the basics of Angular 2 framework. We have discussed 1. What is a component 2. Creating a component and a nested component 3. Passing data between parent and child components using component input and output properties 4. Different ways of applying styles to components 5. We also discussed interpolation, property, class, style and event bindings 6. How angular two way data binding keeps component class properties and HTML element values in sync 7. Using angular structural directives ngIf and ngFor 8. Transform data before display using built-in angular pipes and creating our own custom pipes 9. How to create custom types for the business objects that we create in a real-world application like Employee, Customer, Order, etc using the TypeScript interfaces 10. Component Life Cycle Hooks 11. Creating a service that retrieves data from a remote web service 12. Using Bootstrap to style Angular components 13. How routing works in angular and passing parameters to routes 14. What is Dependency Injection and how it is implemented in Angular 15. How to work with Observables and Promises in Angular As you have seen throughout the course, Angular provides consistent set of patterns for creating components, pipes and services. As we already discussed in our previous video, from a developer standpoint, there is no much difference between Angular 2 and Angular 4. The way we create an angular application is very identical whether we use Angular 2 or Angular 4 version. Angular 4 is simply the next version of Angular 2. All the angular concepts that we have learnt so far as part of this course are still valid, and we can still use those same concepts to build angular applications using Angular version 4. So here is what we plan to do next A short course on a tool called Angular CLI. Angular CLI is a command line tool, that help us create, build and test angular applications faster and with great consistency while following angular conventions and best practices. This tool generates the boiler plate code in no time for components, directives, pipes, services etc. I personally think Angular CLI is an extremely useful tool and every angular developer should know how to use it as it greatly improves our productivity when developing angular application. As part of this short course on Angular CLI, we will learn everything we need to know to effectively and efficiently use this tool to improve our productivity while still following angular best practices and conventions. So, once we are comfortable with this Angular CLI tool. We will use it to create a brand new Angular 4 project from scratch. As part of this project we will learn How to perform CRUD (i.e Create, Read, Update & Delete) operations in Angular. Along the way we also discuss form validation and working with different HTML elements like textboxes, radio buttons, checkboxes, select list etc. We will also discuss using third party form controls like Datepicker, Rating control etc. Text version of the video http://csharp-video-tutorials.blogspot.com/2017/09/angular-2-course-wrap-up-and-whats-next.html Slides http://csharp-video-tutorials.blogspot.com/2017/09/angular-2-course-wrap-up-and-whats-next_19.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 29714 kudvenkat
Getting Started with the Graph API
 
17:35
An introduction to Facebook's Graph API which is the primary way to programmatically integrate with Facebook - publishing Open Graph stories, reading data about the current user - their details, likes and interests and friends. Read the full Getting Started guide at https://developers.facebook.com/docs/getting-started/graphapi/ We cover: - the difference between Objects (also known as Edges) and Connections - Using the Graph API Explorer we see how to build up deep graph queries which dive several layers deep into the Graph - How we need to request additional permissions to access more data about the user, or to have permission to publish on behalf of the user.
Views: 396159 Facebook Developers
Angular 2 http service tutorial
 
22:15
Tags angular 2 injectable example angular 2 http calls angular 2 http cors angular 2 http example angular 2 http observables angular 2 http request angular 2 http rest example angular 2 http simple example angular 2 http tutorial angular 2 http typescript angular observable example angular http cross origin request angular cross-origin request blocked angular 2 cross domain request Text version of the video http://csharp-video-tutorials.blogspot.com/2017/08/angular-2-http-service-tutorial.html Slides http://csharp-video-tutorials.blogspot.com/2017/08/angular-2-http-service-tutorial_8.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss 1. How to call ASP.NET Web API service using Angular 2 http service. Though this example demonstrates calling ASP.NET Web API service, we can use this same approach to call any web service built using any server side technology. 2. We will also briefly discuss Observable pattern In our previous video we have created ASP.NET EmployeeWebAPIService. Here are the steps to call the Web API service using the Angular builtin http service. Step 1 - Import the angular HTTP module : The first step is to import HttpModule which is present in a separate javascript file - @angular/http. After the HttpModule is imported, include it in the imports array of the NgModule() decorator of our root module "AppModule" which is in "app.module.ts" file. With this change we can now start using the angular built-in http service throught our application to access web services over HTTP. import { HttpModule } from '@angular/http'; @NgModule({ imports: [ HttpModule], declarations: [ ], bootstrap: [AppComponent] }) export class AppModule { } Step 2 - Modify angular EmployeeService to issue a GET request using the builtin http service : 1. The angular EmployeeService is in employee.service.ts file. 2. Use the EmployeeService class constructor to inject Angular Http service. The injected http service can then be used anywhere in this class to call a web service over http. 3. Since this Angular EmployeeService class has an injected dependency, @Injectable() decorator is required on this class. If there are no injectable dependencies then we may omit the @Injectable() decorator, but angular strongly recomends to use the @Injectable() decorator irrespective of there are injectible dependencies or not for consistency and future proof. 4. Notice in the getEmployees() method, we are using the get() method of the angular http service to issue a get request over http. 5. If you right click on get() method and go to it's definition you will notice that this method return Observable[Response]. 6. Observable[Response] is not that useful to us, so we have set the return type of getEmployees() method to Observable[IEmployee[]] 7. To convert Observable[Response] to Observable[IEmployee[]] we are using the map operator provided by rxjs. At the moment, we are not handling exceptions. We will discuss how to handle exceptions in our upcoming videos. What is an Observable 1. Observable is an asynchronous pattern. In the Observable pattern we have an Observable and an Observer. Observer observes the Observable. In many implementations an Observer is also called as a Subscriber. 2. An Observable can have many Observers (also called Subscribers). 3. Observable emits items or notifications over time to which an Observer (also called Subscriber) can subscribe. 4. When a subscriber subscribes to an Observable, the subscriber also specifies a callback function. 5. This subscriber callback function is notified as and when the Observable emits items or notifications. 6. Within this callback function we write code to handle data itmes or notifications received from the Observable. Step 3 - Subscribe to the Observable returned by angular EmployeeService : EmployeeListComponent needs the employees data returned by the service. So in the ngOnInit() method of "employeeList.component.ts" use the subscribe method as shown below. ngOnInit() { this._employeeService.getEmployees() .subscribe(employeesData =] this.employees = employeesData); }
Views: 137257 kudvenkat
Controlling Data Access Using Firebase Auth Custom Claims (Firecasts)
 
13:12
The Firebase Admin SDK supports defining custom attributes on user accounts. This provides the ability to implement various access control strategies, including role-based access control, in Firebase apps. These custom attributes can give users different levels of access (roles), which are enforced in an application's security rules. In this episode of Firecasts, Jen Person gives us an overview of custom auth claims, how they are useful, and what you can do with them! If you want to create a custom user experience for different kinds of users, then follow along in this episode of Firecasts! Links: Guide - Getting Started with the Admin SDK → http://bit.ly/2QMrIji Guide - Overview of Firebase Auth Admin → http://bit.ly/2O4dT14 Guide - Firebase Admin Auth Custom Claims → http://bit.ly/2OBb9Fr Firebase Auth Admin SDK Codelab → http://bit.ly/2Dkfvjr Guide - Understand Realtime Database Rules → http://bit.ly/2MRUIUA Guide - Secure Data in Cloud Firestore → http://bit.ly/2Qqrpuj Guide - Understand Security Rules for Cloud Storage → http://bit.ly/2MSa22w Firecasts Playlist → https://goo.gl/Ud2b5L To keep up with the latest from Firebase, Subscribe! → https://goo.gl/9giPHG
Views: 28015 Firebase
Loop through all form controls in formgroup in reactive form
 
09:29
In this video we will discuss, how to loop through all form controls in a formgroup including nested form groups in a reactive form. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/10/loop-through-all-form-controls-in.html Slides http://csharp-video-tutorials.blogspot.com/2018/10/loop-through-all-form-controls-in_8.html Angular 6 Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhWNJaDgh0mfae_9xoQ4E_Zj Angular 6 Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2018/09/angular-6-tutorial-for-beginners.html Angular, JavaScript, jQuery, Dot Net & SQL Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd Understanding this technique is very useful, as it can help us perform the following on all the form controls in a reactive form 1. Reset form controls 2. Enable or disable all form controls or just the nested formgroup controls 3. Set validators and clear validators 4. Mark form controls as dirty, touched, untouched, pristine etc. 5. Move validation messages and the logic to show and hide them into the component class from the view template. Here is what we want to do : Loop through each form control in a form group including nested form groups and log the form control key and value to the console. logKeyValuePairs(group: FormGroup): void { // loop through each key in the FormGroup Object.keys(group.controls).forEach((key: string) = { // Get a reference to the control using the FormGroup.get() method const abstractControl = group.get(key); // If the control is an instance of FormGroup i.e a nested FormGroup // then recursively call this same method (logKeyValuePairs) passing it // the FormGroup so we can get to the form controls in it if (abstractControl instanceof FormGroup) { this.logKeyValuePairs(abstractControl); // If the control is not a FormGroup then we know it's a FormControl } else { console.log('Key = ' + key + ' && Value = ' + abstractControl.value); } }); }
Views: 24257 kudvenkat
Generate unique id value for dynamically created form controls in angular
 
05:19
In this video we will discuss how to generate unique id value for the dynamically created form controls in Angular. Text version of the video https://csharp-video-tutorials.blogspot.com/2018/11/generate-unique-id-value-for.html Slides https://csharp-video-tutorials.blogspot.com/2018/11/generate-unique-id-value-for_5.html Angular 6 Tutorial https://www.youtube.com/playlist?list=PL6n9fhu94yhWNJaDgh0mfae_9xoQ4E_Zj Angular 6 Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2018/09/angular-6-tutorial-for-beginners.html Angular, JavaScript, jQuery, Dot Net & SQL Playlists https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd If you are wondering, why is there a need to generate unique id values Well, first of all, IDs on an HTML page are meant to be unique. Having duplication IDs is a terrible idea. Although it may work in some cases, it is semantically incorrect to do so. In our case the application behaves erratically, because of duplicate element IDs. When we click on a label, we expect it's corresponding input element to receive focus, but, in our case, a different element receives focus. To fix this we have to generate unique ID values for the input elements.
Views: 11948 kudvenkat
Wordpress 403 - Forbidden Access Is Denied Error Solutions
 
08:38
Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL Check out the free WP & Online Marketing Summit For Beginners. The online event is June 18, 2019: https://events.wplearninglab.com/ Wordpress 403 - Forbidden Access Is Denied Error Solutions Join our private Facebook group today! https://www.facebook.com/groups/wplearninglab Wordpress 403 - Forbidden Access Is Denied is a frustrating error because it doesn't tell you what the problem is and can have multiple causes. The only way to deal with it is to go through the possible causes and eliminate each as the cause of your problem. The first is a plugin conflict, the second is your .htaccess file and the third is your server file and folder permissions. Learn how to go through each of them step-by-step. Post videos of your WordPress success using the hashtag #WPLLCommunity! Get on the Unofficial Ultimate Guide To Elementor course waiting list here (no obligation): https://elementor.convertri.com/elementor-guide-waiting-list Here's the link for Elementor Pro (aff): https://wplearninglab.com/recommends/elementor WP Learning Lab Channel: http://www.youtube.com/subscription_center?add_user=wplearninglab
Bootstrap checkbox in angular
 
06:16
In this video we will discuss 1 Working with a checkbox control in Angular Template Driven forms 2. How to have a checkbox checked by default 3. How to disable a checkbox Working with a checkbox in Angular is very similar to working with a radio button. We want to include "Is Active" checkbox in the Create Employee form as shown below. When we check the checkbox, "isActive" property should reflect in the Angular generated for model. Also, when we click the "Save" button we want the "isActive" property value to be logged to the console. To achieve this all you have to do is include the following HTML in create-employee.component.html file. Please replace [ with LESSTHAN symbol and ] with GREATERTHAN symbol [div class="form-group"] [div class="form-control"] [label class="checkbox-inline"] [input type="checkbox" name="isActive" [(ngModel)]="isActive"]Is Active [/label] [/div] [/div] If we include "checked" attribute on a checkbox, we expect checkbox to be checked by default when the form initially loads. But you will discover that is not the case. [input type="checkbox" name="isActive" [(ngModel)]="isActive" checked]Is Active However, if you remove the "ngModel" directive from the checbox, then it gets checked as expected. Notice the "ngModel" directive is removed from the checkbox. [input type="checkbox" name="isActive" checked]Is Active With Angular Template Driven forms, we use "ngModel" directive for two-way data binding. So the moment we put it back in place the "checked" attribute does not work. To make it work include "isActive" property in the component class and initialise it to true. isActive = true; At this point you will have "IsActive" checkbox checked by default when the form loads. Now, even if we remove the "checked" attribute from the checkbox it is still checked by default when the form loads. This is because of the two-way data binding that we get with "ngModel" directive. For our form we do not want the checkbox to be checked by default, so remove the "checked" attribute and the "isActive" property from the component class. How to disable a checkbox : To disable a checkbox, use the disabled attribute [input type="checkbox" name="isActive" [(ngModel)]="isActive" disabled]Is Active Another important point to keep in mind. By default, disabled form controls are not included in the Angular auto generated form model. Since, the "Is Active" checkbox is disabled, it will not be included in the Angular generated form model. In our form, we do not want the checkbox to be disabled, so please remove the disabled attribute. Text version of the video http://csharp-video-tutorials.blogspot.com/2018/01/bootstrap-checkbox-in-angular.html Slides http://csharp-video-tutorials.blogspot.com/2018/01/bootstrap-checkbox-in-angular-slides.html Angular CRUD Tutorial https://www.youtube.com/watch?v=rJ9o4TyhSuo&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_ Angular CRUD Tutorial Text Articles & Slides http://csharp-video-tutorials.blogspot.com/2017/12/angular-crud-tutorial.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 33812 kudvenkat
Onchange event, getting a value from a select tag and changing the visibility of other elements
 
09:17
Get the value of a select tag, check it and change the visibility of other elements.
Views: 68226 vasillis-javed khan
How to Build a WYSIWYG  Rich Text HTML Editor - Textarea Replacement for Your Web Site - CKEditor
 
14:54
http://simpletut.com - Learn how to incorporate a Rich Text HTML Editor into your website applications. Like Us On Facebook: https://www.facebook.com/SimpleTut Online CSS Menu Builder: http://cssmenucreator.com/ Professional Web Design Services: http://siteezy.com/
Views: 108783 SimpleTut
Angular 6 Basics 24 - Extending the sample app
 
11:38
Access the full course here: https://javabrains.io/courses/angular_basics In this video, we'll put some of the concepts we've learnt into practice by creating a Github profile lookup application in Angular. Watch me code an app that makes REST calls to the Github API and looks up user information. Angular 6 Basics - Learn how to create Angular applications from scratch. Understand the Angular framework and learn how to use the features of the framework to create components and services. Use modules to organize your code. Build applications that call REST APIs and fetch data from a server. Implement routing to show multiple views with multiple URLs. This course requires no previous knowledge of Angular or AngularJS.
Views: 32512 Java Brains
Building an Angular Application in Sails: Ep3 - Understanding Asset Delivery Options - SignUp Page
 
14:51
activityOverlordv2.0 is an series of screencasts updating the original activityOverlord screencasts. In this episode we'll go over the various ways to set-up Sails to deliver Angular UI Assets. The repo for the code can be found at: https://github.com/irlnathan/activityoverlord20 Twitter: https://twitter.com/irlnathan Mailing List: http://irlnathan.github.io/sailscastsnewsletter/
Views: 25532 Ponzi Coder
Hacker News Clone in AngularJS - Post 4, Part E: Adding an Angular Filter to multiple Controllers
 
14:53
http://becomingaprogrammer.com/hacker-news-clone-angularjs-part-4-angular-filters/ Hi Everyone! I'm Dakota Lee Martinez. In this video series I'll be using the Hacker News API to build out a Hacker News Clone in AngularJS. These videos are accompanied by a series of blog posts at becomingaprogrammer.com. You can find the written explanation of the process and code samples there. http://becomingaprogrammer.com/hacker-news-clone-angularjs-part-4-angular-filters/ This video covers the following topics: * discussing where to put view formatting functions in AngularJS * creating the filters we're going to create: js/app/filters/getHoursAgo.js, js/app/filters/getDomainFromUrl.js * linking these filters to the project by creating script tags at the bottom of index.html * adding the Visual Studio Code snippet for Angular Filters: Copy and paste the following command into your terminal: curl https://gist.githubusercontent.com/DakotaLMartinez/1840f35d0c0cc6dc9f7d2465fb17ceea/raw/80a6044634238b416cea544ea6c486c8d78bca44/javascript.json | pbcopy Open up the Code menu .. Preferences .. User Snippets Type in JavaScript and hit return paste in the contents of your clipboard, making sure the currently open file contains valid JSON (no red squiggly lines underneath the code). * using the ng1filter snippet to build our getHoursAgo Filter, consulting the code we wrote earlier in the tutorial * making sure our filter only accepts numeric input. Check out this blog post for more details: http://javascript.boxsheep.com/how-to-javascript/How-to-check-if-a-value-is-a-number/ * using our filter within the StoryCommentController in js/app/components/StoryComment.js by injecting it as a dependency. * applying our getHoursAgoFilter to the value of res.data.time retrieved from the Hacker News API and storing the result in the vm.commentTime property * using our filter within the StoryDirectiveController in js/app/directives/Story.js by injecting it as a dependency. * applying our getHoursAgoFilter to the value of vm.story.time retrieved from the Hacker News API and storing the result in the vm.time property * loading http://localhost:8080/#/post?id=1 to make sure that the proper time is still being displayed
Views: 55 Dakota Martinez
Bossable.com - MEAN Stack: 28 - Answering Q's with CSS & AngularJS directives
 
15:16
Learn how to build a MEAN Stack (MongoDB, Express, AngularJS, NodeJS) app! Tutorial Series: Step 28/30 - CSS & AngularJS directives. Want to build scalable web apps quickly and easily? Check out the MEAN stack, a collection of technologies that fit together to provide a solution that allows for a full-stack JavaScript implementation of web applications. If you like it, please share it! --- This Video Tutorial: In this video we'll create our own notification service using an AngularJS Factory with publication and subscription methods. We'll use this service to send messages between our Create Customer Modal, and our Customer List to refresh the list when a new customer is created. In this video we'll clean up our app and answer some questions sent through via email and posted on the Bossable.com site. We'll fix some errors, pretty up our customers list, add a picklist using ng-options, and fix the alignment between Channel and Email. This video is further explained over on the bossable.com site: http://www.bossable.com/734/mean-stack-css-angularjs-directives We look at: - Fixing some of the task errors identified by Grunt - Using Chrome to test out adding some padding between the customer records in the customers list - Adding a new class with padding to our customers css file - Using ng-class to add some colours to the customers list based on the referred field - Increase the size of the icon on the customers list - Adding drop down values to our app using ng-options - The AngularJS documentation and examples for ng-options - Adding ng-options to our controller and edit customers client view - Testing our new picklist in the Update Customer Modal - Fixing the alignment of fields between the Channel and Email fields Thanks for viewing. I really appreciate any feedback you have. Also check out my 30 Day MEAN Stack Challenge - videos on YouTube everyday for 30 days to create a MEAN.js App - videos are up on http://www.bossable.com --- Playlist - https://www.youtube.com/playlist?list=PL6rhBJX0L3TWYrwrQIi1_MzQDvVhkUVPI ------ Subscribe: http://youtube.com/c/Bossable?sub_confirmation=1 Facebook: https://www.facebook.com/pages/Bossable/1681997998694376 Google+: https://www.google.com/+Bossable Twitter: https://twitter.com/ShristiSharma_ About & Contact: http://www.bossable.com/say-hello/
Views: 3748 Bossable
Angular 2 Tutorial (2016) - Multiple Components + ngFor Directive
 
12:45
Want much more Angular 2? Also check out my brand-new Udemy course, which will go into much more detail than this video series. Get it now for only $15: https://www.udemy.com/the-complete-guide-to-angular-2/?couponCode=YOUTUBE_2 Angular 2 Tutorial on multiple Components and how they interact. Additionally the structural directive *ngFor is explained. Want to get some 1-on-1 coaching with experienced developers? Have a look at Savvy: https://www.savvy.is/?ref=9fee2b (Discount Code 9fee2b) You can follow me on Twitter (@maxedapps), Facebook (https://www.facebook.com/academindchannel/) or visit our Website (https://www.academind.com). Source code for complete series available here: https://github.com/mschwarzmueller/angular-2-introduction.git Source code for individual videos (repo created and maintained by a viewer): https://github.com/bapatel1/Learning-Angular-2.0 Get into developing Angular 2 applications instantly! Please share, like and comment if you like the video! This course will teach you all the fundamentals of the current Angular 2 Beta and will prepare you to write actual Angular 2 web applications. We will cover Directives, Components, Template Syntax, Two-Way-Data Binding, Services, HTTP (GET and POST) and much more! In order to get the most out of this course be sure to use my prepared GitHub Repository as a Boilerplate: https://github.com/mschwarzmueller/angular-2-beta-boilerplate.git Have fun and please leave a like or comment if you like (or dislike) this video or this series!
Views: 55362 Academind
2.3 HTTP Post Request with fetch() - Working with Data and APIs in JavaScript
 
16:02
💻https://github.com/CodingTrain/Intro-to-Data-APIs-JS We are now in Module #2! In the previous module, we focused on client-side JavaScript. We now will learn the basics of server-side programming with Node. 2.3 Let's take data from the client and send it to the server. This video covers routing, JSON parsing, and HTTP POST requests with fetch(). 🎥 NEXT LESSON: https://youtu.be/xVYa20DCUv0 🎥 PREVIOUS LESSON: https://youtu.be/3ls013DBcww 🎥 FULL COURSE: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YxDKpFzf_2D84p0cyk4T7X 🚂 Website: http://thecodingtrain.com/ 💖 Patreon: https://patreon.com/codingtrain 🛒 Store: https://www.designbyhumans.com/shop/codingtrain/ 📚 Books: https://www.amazon.com/shop/thecodingtrain 🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA 🔗 p5.js: https://p5js.org 🔗 Processing: https://processing.org 📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
Views: 19860 The Coding Train