Web Prepration

Web Concept Tutorials

Angular

Here you can study most popular and useful tutorials of Angular, we have lists of tutorials, Interview Questions and answers of  Angular.

Angular, Others
How to check Object is empty or not in JqueryJavaScript

In this post, I am going to explain “How to check object is empty or not” in javascript/JQuery because there are many place we require to check object is empty, null or undefined etc. So usually we can check using $.isEmptyObject(). In javascript to check empty object, how to check empty object in jQuery, jQuery.isEmptyObject() example, jquery check object is null, jquery check object is empty, jquery check object is empty or not, how to check JSON object is empty or not in jquery.

You can also check other way to your object is empty or not.

I hope you found your best… WebpreprationI’m a full-stack developer.  My hobby and profession to write blog and programming tips that helps to others. I am a great admirer of PHP, Laravel, Codeigniter, AngularJS,  Vue.js,  Javascript, JQuery, WordPress, Plugin Development, Theme Development and Bootstrap from the early stage.   webprepration.com/

read more >>
Angular, Interview Questions
Angular 8

Angular is an app-design framework and development plate form for creating web applications, Angular is a leading technology in web development as well as we know angular has great demand in the market. Q) What are new features in Angular 9? Ans:- An undecorated class migration schematic added to the core. Numeric Values are accepted in the formControlName. Selector-less directives have now been allowed as base classes in View Engine in the compiler. Conversion of ngtsc diagnostics to ts.Diagnostics is possible Q) What is the difference between $scope and scope in Angular? Ans:-  $scope in Angular is used for implementing the concept of dependency injection (D.I) on the other hand scope is used for directive linking. $scope is the service provided by $scopeProviderwhich can be injected into controllers, directives or other services whereas Scope can be anything such as a function parameter name, etc. Q) What is the purpose of

read more >>
Angular, Laravel

In this post, I will explain “How to create database seeder in Laraver” for insert data in the database. Laravel provides the facility to seed your database with dummy data using Laravel Seeder Class. By default, all seeds files are stored at the database/seeds directory. What is Database Seeder in Laravel? Database seeds extremely useful because testing with various data allows you to likely detect bugs. Database seeder in Laravel is the most useful feature, We have to simply make a one-time seeder with some dummy data, that way we can simply reuse when you deploy project first time. We can make seeders after the migration of the table. How to run seeder in Laravel? Laravel by default provides DatabaseSeeder class to execute database related operations. Any operation will execute through call() method of Seed class. So in this example, we will add some dummy data of the user’s table

read more >>
Angular, Interview Questions

In this post we are going to share some frequently asked questions of AngularJS, If you want to start career as an angular developer then this post is very useful for you. I am going to share basics and advance level of interview questions and answer of Angular. 1) What is AngularJS? Answer:- AngularJS is a JavaScript framework used for creating single web page applications. It allows you to use HTML as your template language and enables you to extend HTML’s syntax to express your application’s components clearly. Angular is a front-end or client-side framework which needs programming language like TypeScript ( developed by Microsoft ). Now, what does it mean when one says, “Angular is a client-side framework”? It means that it runs on the client-side or user’s browser and not on a Web Server . Angular is a product developed and maintained by the techie giant Google and

read more >>
Angular, Others

In this post, We are going to explain *ngFor and all features of *ngFor means local variables and find index etc. *ngFor NgFor is a structural directive, means, it changes the structure of the DOM Its point is to repeat a given HTML template once for each value in an array, each time passing it the array value as context for string interpolation or binding. The syntax is *ngfor=”let <value> of <collections>” <value> is variable name of your choosing, <collection> is property on your component which holds a collection, usually an array but anything that can be iterate over in a for loop. Example:-

  ngFor-local variables Index – Used for provide the index for current element while iteration. First –  Return true if current element is first element in the iteration otherwise false. Last — Return true if current element is last element in the iteration otherwise false.

read more >>
Angular, Others

In this post, I am going to explain “How to use ngSwitch in Angular5”, ngSwitch used in angular same as other programming language. In this article I will be show example “How to use ngSwitch in Angular”. ngSwitch ngSwitch is actually comprised of two directives, an attribute directive and a structural directive. Its very similar to a switch statement in JavaScript and other programming languages, but in the template. The ngSwitch directive lets you hide/show html element depending on expression We can also define a default section, by using the ng-switch-default directive, to show a section if none of the other sections get a match. Three things to keep in mind –ngSwitch, ngSwitchCase, ngSwitchDefault Example:-

  Thanks!! WebpreprationI’m a full-stack developer.  My hobby and profession to write blog and programming tips that helps to others. I am a great admirer of PHP, Laravel, Codeigniter, AngularJS,  Vue.js,  Javascript, JQuery, WordPress,

read more >>