Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Arun Singh

Arun Singh

★ JanBask Expert
Share
14Questions
47Answers
27.6KViews on questions

What will be the yield of the accompanying code?

Above code can yield vague results. delete administrator is used for erasing a property from an associate degree object. Here x is an associate degree object that has foo as property and from the self-summoning perform we tend to are erasing foo property of object x and once deletion, we tend to try to reference…

Python

Answered Jan 10, 2020 · 1.8K Views Read answer →

Difference between modules and components in angular.

Components: Components control views (html). They also communicate with other components and services to bring functionality to our app. A Component contains: HTML template or HTML code Code(TypeScript) Service: It is a reusable code that is shared by the Components so that rewriting of code is not required Pipe: It…

Python

Answered Jan 10, 2020 · 1.7K Views Read answer →

What is circular dependency in angular?

Circular dependency occurs when service A injects service B, but service B in turn injects service A, usually indirectly. For example, B depends on service C which depends on A – A -> B -> C -> A forms a circle. The simplest scenario is if we have three files: forms.model.ts import { CustomModel } from…

Python

Answered Jan 9, 2020 · 9.6K Views Read answer →

Difference between RouterModule component, loadChildren, redirectTo?

component => A string that acts as a URL for a single route. redirectTo => Same like component i.e. URL for a single route. Used to redirect URL if available, or use the default URL. loadChildren => A string that acts as a URL for a set of routes to load, or a function that returns such a set. Component is to directly…

Python

Answered Jan 8, 2020 · 1.7K Views Read answer →

What are the differences between ReactiveFormsModule and FormsModule?

Formsmodule: Angular 2 now provides an identical mechanism named also ngModel that allow us to build what is now called Template-Driven forms. Unlike the case of AngularJs, ngModel and other form-related directives are not available by default. With FormsModule it's a bit more complicated since you need to deploy your…

Python

Answered Jan 7, 2020 · 1.9K Views Read answer →

Clarify Bridge Pattern.

Bridge design is employed once we need to decouple deliberation from its execution with the goal that the 2 will modify autonomously. This type of configuration style goes underneath an auxiliary example as this instance decouples execution category and theoretical class by giving a scaffold structure between them.…

Python

Answered Jan 3, 2020 · 1.5K Views Read answer →

Define Inversion of Control?

Inversion of control is an associate expansive term but for a product engineer it's most frequently delineates as an example utilised for decoupling segments and layers within the framework. For instance, say your application contains a content tool section and you wish to administer spell checking. Your customary…

Python

Answered Jan 2, 2020 · 1.7K Views Read answer →

Creating multiple levels nested components in angular.

Passing data between nested components is achieved through an arrangement of defining input and output properties of the child-element in the parent component html and the @Input and @Output of the child component. So we want to create three levels up nested components. So, here is an example what we can do Our app…

Python

Answered Dec 1, 2019 · 2.1K Views Read answer →

What are directives?

Directive is basically a function which gets executed when the Angular compiler finds it in DOM. There are three types of directives in Angular: Component -Directives with a template Structure Directive -Change layout of the elements Attribute Directive -Change the appearance or behavior of a particular element.

Python

Answered Nov 16, 2019 · 1.6K Views Read answer →

How to resolve error while formatting date as dd/MM/yyyy using pipes?

We will be doing this by taking an example. In the example below we are using the date pipe to format my date, but we just can't get the exact format we want without a workaround. Maybe we are understanding pipes in the wrong way. //our root app component import {Component} from 'angular2/core' @Component({ selector:…

Python

Answered Nov 13, 2019 · 1.6K Views Read answer →

More members from the Python community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.