Thursday, January 17, 2019

20+ Frequently Asked AngularJS Interview Questions and Answers

20+ Frequently Asked AngularJS Interview Questions and Answers

 

AngularJS can be a demanding technology, prompting a salary scope of anything from $60/hour for a freelance developer to $70,000/year for a Front End Developer/Engineer in an organization. Since this certification is a requirement for a large percentage of web-developer job postings, you can assume that there is never a lack of qualified candidates.
In every interview, you will have to contend with fierce competition. To perform well and get your dream job, you have to prepare in advance. To help you, we’ve outlined 20 frequently asked AngularJS interview questions and the kind of answers your interviewer is likely looking for.
1. In 30 seconds, define AngularJS.
AngularJS is an open-source JavaScript framework designed for creating dynamic single web page applications with fewer lines of code.
2. Mention some advantages of using AngularJS framework.
Some of the key advantages of using AngularJS framework include:
  • It provides a great “desktop-like” experience to the end user.
  • By separating DOM manipulation from app logic, it makes code modular and easy to test.
  • It supports two-way data binding.
3. What is the main thing that you would need to change if you were migrating from AngularJS 1.4 to AngularJS 1.5? 
To adapt to the new AngularJS 1.5 components, you would need to change .directive to .component
4. Is AngularJS compatible with all browsers? 
Yes.
5. What are the key features of AngularJS?




AngularJS, the self-proclaimed “superheroic JavaScript MVW framework,” has been around since 2009 and it remains one of the most popular web development frameworks the world over. According to Indeed.com, the demand for developers has been on the rise in recent months and this trend is expected to continue.
AngularJS can be a demanding technology, prompting a salary scope of anything from $60/hour for a freelance developer to $70,000/year for a Front End Developer/Engineer in an organization. Since this certification is a requirement for a large percentage of web-developer job postings, you can assume that there is never a lack of qualified candidates.
In every interview, you will have to contend with fierce competition. To perform well and get your dream job, you have to prepare in advance. To help you, we’ve outlined 20 frequently asked AngularJS interview questions and the kind of answers your interviewer is likely looking for.
1. In 30 seconds, define AngularJS.
AngularJS is an open-source JavaScript framework designed for creating dynamic single web page applications with fewer lines of code.
2. Mention some advantages of using AngularJS framework.
Some of the key advantages of using AngularJS framework include:
  • It provides a great “desktop-like” experience to the end user.
  • By freeing the developer from having to register callbacks manually or write repetitive low-level DOM manipulation tasks, it saves months of development.
  • By separating DOM manipulation from app logic, it makes code modular and easy to test.
  • It supports two-way data binding.
3. What is the main thing that you would need to change if you were migrating from AngularJS 1.4 to AngularJS 1.5? 
To adapt to the new AngularJS 1.5 components, you would need to change .directive to .component
4. Is AngularJS compatible with all browsers? 
Yes.
5. What are the key features of AngularJS?
  • Scope
  • Controller
  • Model
  • View
  • Services
  • Data Binding
  • Directives
  • Filters
  • Testable
6. Define scope in AngularJS.
Scope is a special JavaScript object that plays the role of joining the controller (JavaScript) with the views (HTML). The controller sets properties on the scope and the view binds to them.
7. Explain the concept of scope hierarchy.
Each AngularJS application has only one root scope. Child controllers, however, create a scope for each view. When the new scopes are created, they are added to their parent root scope as child scopes. This creates a hierarchical structure when they are attached.
8. What is data binding in AngularJS and What is the difference between one-way and two-way binding?
Data binding is the automatic attunement of data between the view and model components. AngularJS uses two-way data binding. In one-way binding, the scope variable in the html is set to the first value that its model is assigned to.
In two-way binding, the scope variable changes its value every time its model binds to a different value.
9. What are directives? 
Directives are special markers on a DOM element that tell the html compiler to attach a specified behavior to the DOM element. Directives start with ng-prefix. Some of the built-in directives include ngClass, ngApp, ngRepeat, ngModel, ngBind and ngInit
10. List the different types of directives.
There are four types of directives:
  • Comment directives
  • CSS class directives
  • Attribute directives
  • Element directives
11. In what ways can you use a directive? 
You can use a directive as an element, attribute or class name. To define the way your directive will be used, you need to set the restrict option in the directive declaration. The restrict option can be set to:
‘A’ - Only matches attribute name
‘C’ - Only matches class name
‘E’ – Only matches element name
You can combine these restrictions to produce needed results.
12. Explain what a digest cycle is in AngularJS?
During every digest cycle, all new scope model values are compared against the previous values. This is called dirty checking. If change is detected, watches set on the new model are fired and another digest cycle executes. This goes on until all models are stable.
The digest cycle is triggered automatically but it can be called manually using “.$apply()”.
13. Which are the common ways of communication between modules of your application, using core AngularJS functionality?
The common ways of communication include:
  • Using events
  • Using services
  • By assigning models on $rootScope
  • Directly between controllers using ControllerAs and other forms of inheritance
  • Directly between controllers using $parent, $$childHead, $$nextSibling
14. Explain what the link function is and how it differs from compile.
The link function combines the directives with a scope to produce a live view.
The link function is responsible for instance DOM manipulation and for registering DOM listeners.
The compile function is responsible for template DOM manipulation as well as the collection of all the directives.
15. Explain e2e testing of AngularJS applications.
End-to-end (e2e) testing involves testing an application from start to finish to determine whether all the components are working properly. It catches issues within an application related to integration and flow.
16. What is dependency injection?
Dependency injection is the process where the dependent objects are injected rather than being created by the consumer.
17. What are the benefits of dependency injection?
Dependency injection has two major benefits: Testing and decoupling.
18. What is Single Page Application (SPA)? 
SPA is the concept whereby pages are loaded from the server not by doing post backs, rather by creating a single shell page or master page and loading the web pages into the master page.
19. How can SPA be implemented in AngularJS?
SPA can be implemented with Angular by using Angular routes
20. How can digest cycle time be decreased?
Digest cycle time can be decreased by decreasing the number of watchers. To do this you can:
  • Use web worker
  • Work in batches
  • Cache DOM
  • Remove unnecessary watchers
  • Use one-time Angular binding

Conclusion

Now that you’ve read all the AngularJS interview questions and answers above, you are a step closer to passing your interview and getting your dream job.
If you feel that you need to refresh your knowledge on some concepts and master front-end web development with Angular, consider taking  Angular Certification training course. It’s affordable and

Angular 6 Interview Questions

Angular 6 Interview Questions

#1 Question

List some new features comes with Angular6

Latest Key features of Angular 6
  • Added support for creating Custom Elements based on Angular Components.
  • Animations: expose element and params within transition matchers.
  • Bazel: change ng_package rule to APF v6
  • singleline, multiline and jsdoc comments are now supported
  • compiler-cli : add resource inlining to ngc
  • support for TypeScript 2.7
  • Require node 8 as runtime engine

#2 Question

Explain Ivy Renderer in Angular?

#3 Question

What is Bazel and Closure Compiler in Angular6?

#4 Question

Explain Service Worker in reference to Angular JS

#5 Question

Write command to generate a component in specific module in Angular cli?

You can generate a component in specific module in AngularJs by running below commnad on CLI.
ng g component component_name --module=module_name

#6 Question

How to generate a module in Angular?

In order to generate a module in Angular, cd to the current project directory and below command.
ng g module module_name

#7 Question

Explain Zone in Angular?

Zones are a kind of performance setting that empowers us to catch into our anachronistic tasks.
Zones in angular APIs increase the performance by executing our code exterior to the angular zone. It helps in preventing Angular from the governing unwanted alter detection assignments.

#8 Question

How to update or upgrade angular cli version

In order to upgrade angular-cli package that was installed globally in your system, you need to run following commands
npm uninstall -g angular-cli
npm cache clean or npm cache verify (if npm > 5)
npm install -g @angular/cli@latest
Instead of upgrading global version of angular-cli you can also upgrade the local version for specific project y running following commands:
rm -rf node_modules
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install

#9 Question

List some Inbuilt Pipes available in Angular

Below are the list of few Pipes available in Angular Js
  • DatePipe
  • CurrencyPipe
  • AsyncPipe
  • DecimalPipe
  • TitleCasePipe
  • JsonPipe
  • SlicePipe
  • PercentPipe
  • UpperCasePipe
  • LowerCasePipe

 

AngularJS Interview Questions

AngularJS Interview Questions

 

#1 Question

What is Angular JS?

AngularJS is a JavaScript framework that is used for making rich, extensible web applications. It runs on plain JavaScript and HTML, so you don’t need any other dependencies to make it work.AngularJS is perfect for Single Page Applications (SPA). It is basically used for binding JavaScript objects with HTML UI elements.

#2 Question

Explain the architecture of AngularJS?

AngularJS is architecture on 3 components. They are
  • The Template (View)
  • The Scope (Model)
  • The Controller (Controller)
AngularJS extends HTML attributes with Directives and binds data to HTML with Expressions.

#3 Question

What is the Template in AngularJS?

The template is the HTML portion of the angular app. It is exactly like a static HTML page, except that templates contain additional syntax which allows data to be injected in it in order to provide a customized user experience.

#4 Question

What is the scope in AngularJS?

The scope is the object that represents the “model” of your application. It contains fields that store data which is presented to the user via the template, as well as functions which can be called when the user performs certain actions such as clicking a button.

#5 Question

What is the controller in AngularJS?

The controller is a function which generally takes an empty scope object as a parameter and adds to it the fields and functions that will be later exposed to the user via the view.

#6 Question

Explain Directives in AngularJs?

AngularJS directives are extended HTML attributes with the prefix ng-
The 3 main directives of angular js are
  • ng-app:- directive is used to flag the HTML element that Angular should consider to be the root element of our application. Angular uses spinal-case for its custom attributes and camelCase for the corresponding directives which implement them.
  • ng-model:- directive allows us to bind values of HTML controls (input, select, textarea) to application data. When using ngModel, not only change in the scope reflected in the view, but changes in the view are reflected back into the scope.
  • ng-bind:- directive binds application modal data to the HTML view.

#7 Question

List some tools for testing AngularJS applications?

For testing AngularJS applications there are certain tools that you should use that will make testing much easier to set up and run.
Karma
Karma is a JavaScript command line tool that can be used to spawn a web server which loads your application’s source code and executes your tests. You can configure Karma to run against a number of browsers, which is useful for being confident that your application works on all browsers you need to support. Karma is executed on the command line and will display the results of your tests on the command line once they have run in the browser.
Karma is a NodeJS application and should be installed through NPM/YARN. Full installation instructions are available on the Karma website.
Jasmine
Jasmine is a behavior-driven development framework for JavaScript that has become the most popular choice for testing AngularJS applications. Jasmine provides functions to help with structuring your tests and also making assertions. As your tests grow, keeping them well structured and documented is vital, and Jasmine helps achieve this.
Jasmine comes with a number of matches that help you make a variety of assertions. You should read the Jasmine documentation to see what they are. To use Jasmine with Karma, we use the karma-jasmine test runner.
angular-mocks
AngularJS also provides the ngMock module, which provides mocking for your tests. This is used to inject and mock AngularJS services within unit tests. In addition, it is able to extend other modules so they are synchronous. Having tests synchronous keeps them much cleaner and easier to work with. One of the most useful parts of ngMock is $httpBackend, which lets us mock XHR requests in tests and return sample data instead.
Source:https://docs.angularjs.org/guide/unit-testing

 

Tuesday, January 15, 2019

What is AngularJs 4? Is it a good time to learn Angular Js 4?

What is AngularJs 4? Is it a good time to learn Angular Js 4?

It had been Great to learn Angular ,As it is Trending Now.
  1. Learning Angular 4 and Angular 2 are not different .
  2. Angular 4 is the extension of some features to angular 2.
About Angular 2:
  • If any one is newbie and interested to learn Angular ,then better to start with Angular 2.
  • Angular 2 is built around the concept of components, and more precisely, with the Web Components standard in mind.

 

Saturday, December 22, 2018

Top 25 + Project Management Interview Questions and Answers (updated for 2018)25

Top 25+ Project Management Interview Questions and Answers (updated for 2018)

 

1. Tell us about yourself

Most project management job interviews start with this question. ‘Be relevant’ is the mantra to do well in this question. Give a brief introduction of your background and educational qualifications. If you are an experienced manager, emphasise on the projects that you have done that are relevant to the job you applied for. If you are a fresh graduate, you can tell them about any college projects that you have done. Treat this question as an opportunity for self-promotion to show the employer why you are fit for the job.

2. What, according to you, is an important skill for a project manager to succeed?

Well, if you are a project manager you might already be thinking that there can’t be one skill that is enough to be successful. And, you are right. Your answer could be leadership skills, communication skills, or time management skills. What the interviewer is looking for is the justification for the answer.  So, before you blurt out anything, have your reasons ready.

3. How do you begin a newly assigned project?

Through this question, the interviewer is essentially trying to check your clarity of thought. He/she wants you to describe the important first steps you need to take to ensure the success of a project. A good manager would try to understand ‘what’ of the project before ‘how’. What it means is you first try to understand what is the objective or purpose of the project before diving into how to achieve the goals of the project. Hence, anything on the above lines would get you some brownie points.

4. Where do you see yourself in five years’ time?

This is a top project manager interview question. The answer shows whether you have realistic expectations from the job you are applying for. It helps the interviewer check if your personal goals align with that of the company.
If you are applying for an entry-level position, it might be too ambitious to say ‘I want to be the CEO of this company’. It helps to research on the employee growth in the company and estimate where you could reach with your best performance in the next 5 years. On the other hand, if you are applying for a senior position, you can talk about how you wish to take the company forward and what your contribution towards that would be.

5. How important is it for a project manager to be ‘proactive’?

By very nature, projects are unpredictable. Hence, it is essential that a manager anticipates problems that can occur and plans ahead. Your answer then has to reflect the importance you attach to proactive project management. Show the interviewer that you can handle risks and rise to the challenges that can occur during the course of the project.

6. Can you describe some of the projects that you handled in your previous job?

They don’t want the entire list. Pick some examples based on the following criteria:
  1. How recently have you worked on it? (Don’t talk about a project that happened years ago)
  2. Has it been successful? (Don’t talk about the one in which failed. For obvious reasons, it doesn’t help)
  3. Is it relevant to the job you are applying for?
The whole point of this question is to test your approach and your work ethic. So, make sure that answer reflects those. Most people get carried away by this question and rattle off a lot of details. Please be concise and give only relevant details.

7. What are the knowledge areas relevant to doing a project?

This is a kind of question for which you need to have the answer ready. PMBOK guide describes 10 knowledge areas. Read about them in detail and try to paraphrase in your own words.

8. Describe all the steps involved from the time of project initiation to project completion.

The best answer for this question would be scenario-based. Sometimes, the interviewers themselves give a hypothetical project and ask you how you would handle it.
For each stage phase the project follows, briefly mention the following:
The main objective of that phase
The key people involved
Your role in each of those phases

9. What qualities are required to be an effective project manager?

This question is different from the one in which you are asked to name only one skill. Apart from technical skills, mention leadership skills, time management skills, decision-making skills, prioritization skills, risk management skills etc. The follow-up question can be about how a certain skill helps. So, do prepare a justification for each of the skills you talked about.

10. Did your colleagues or your manager ever challenge your decisions?

Many people think that it’s better to say ‘no’ to this question and move on to the next. But, disagreements in projects are quite common. So, it is extremely unlikely nobody disagreed with your decisions (Especially, if you are a senior project manager). So, it’s better to say yes and go on to describe how you handled the situation. Show that you are a person who can take feedback constructively and can take everybody along with you in a collaborative manner.

11. How do you ensure your team stays on track to meet project deadlines?

A sample answer can be ‘I clearly communicate what the expectations are before the team starts to work on the task. I regularly take updates on the progress and if there is a lag anywhere I make myself approachable for the team members to discuss their problems. Also, I appreciate and give feedback once the project is completed to keep them motivated’

12. Do you know anything about Pareto principle/analysis?

This is again a knowledge-based question. The Pareto principle states that 80% of the results come from 20% of the actions. This is a statistical analysis that is used by project managers to prioritize work. If you have enough experience as a project manager, most likely you have used this principle or at least a variation of it.  Apart from explaining what it is, talk about how you used it in your previous job (if you did)

13. Do you think integrity is an essential quality of a project manager?

Of course, you have to say ‘yes’. Go on to describe why it is so. Any company wants an employee who shares the values and principles of the company. If you are in a responsible position such as a project manager, you are expected to show the way for others to follow. Earning the respect of your team members and the trust of your bosses can only happen when you are ethically upright.

14. If the customer is not happy with the result and does not accept the product. What would you as a project manager do?

Keeping customers happy is important for the companies. Hence, your answer should showcase that you value customers as well. You can start by explaining that during the course of the project you regularly interact with the customers so that they are on the same page as the project team. Despite this, if the customers are unhappy with the result, say that you will try to clearly understand what modifications they want and try to incorporate them. In case the changes cannot be made, you will try to convince and explain to the customer that the project fits in with the agreed scope.

15. How should a project manager communicate a failure to his team?

A good project manager is optimistic. The way you handle failure reflects the true leader in you. If your team worked on a project and it ultimately failed, they are bound to be unhappy. But as a manager, it is your duty to ensure that failures don’t affect the morale of the team. You can tell the interviewer that instead of blaming a particular person or a group, you make it a collective responsibility. Also, mention that you communicate to the team members to learn from the mistakes they made in this project and not repeat them in the future.

16. What was the biggest challenge that you faced while working on a project?

‘I didn’t have the right team’. ‘I don’t deal well with changes’. ‘My boss wasn’t very supportive’. These would be bad answers to give your future employer. As a project manager, you are expected to manage people and handle risks. So, don’t tell your interviewer that you fall short in those two areas. Give an example of a situation in which the challenge was due to the external factors. It can be about when the project was abruptly shelved or when the funding for it has been stopped. Don’t forget to mention how you handled the situation and what you learned from it.

17. What kinds of projects interest you the most? Why?

The one word that you need to focus on for this pm interview question is ‘relevance’. Do your research about the company and the role you are applying for. Your answer for this should be about the kind of projects that the company can offer.

18. What are different kinds of project management tools you worked with?

When the interviewer asks this question, it is to know whether you can use Lean, Kanban, Agile etc. If the company uses particular project management software, read up on it. Further, do mention how your knowledge of a specific project management tool can help their company.

19. What kind of people do you find difficult to work with?

This is a potential trap. ‘I get along with everyone’. Say this and you will open a floodgate of questions. Focus on why you are being asked this question. They want to check your people management skills. You can talk about how you are strictly professional and do not let your emotions get the better of you while working with people. Bring out your maturity, emotional quotient while answering this question.

20. Are there any projects that you do not want to work on?

If you say you are fine with any project, it might imply that you do not know yourself enough to answer this question. Instead, it is better to be honest and communicate your preferences. But, if you are applying for a software project manager position and say you hate software development, slight chance you will get the job. So, be a little smart.

21. How do you keep your team members motivated?

One of the important roles of a leader is to keep the morale of the team members high. Show the interviewer that you are team player and work collaboratively. Tell the interviewer that you would like your team members to look up to you for advice. Also, they should feel free to share their ideas and suggestions with you. Instead of imposing decisions, you allow the team members to contribute and make it a collective effort.

22. How do you monitor and review the delegated responsibilities?

This is an extension of the question on how you ensure that your team members meet deadlines. Talk about clearly defining the responsibilities, arranging regular meetings, empowering the team members to approach if there is any concern and constant updates on the progress of the work.

23. What motivates you to give your best to your projects?

The answer varies from person to person. But responses can be ‘I like to be out of my comfort zone and hence love challenging projects’. ‘Projects which help me learn and evolve, pushing my potential’. ‘I am attracted to success and achievement. The thought of reaching the project goals within the stipulated time motivates me’. Think about the answer that you want beforehand so as to justify your statements with real-life examples.

24. How do you deal with changes to your project?

Changes and modifications are a part and parcel of most projects. An employer wants a project manager who is flexible and adaptable to changes. The best answer can be about how you actually put in place a change management process even before the changes occur. At the same time, showcase that you are not a person shy to say ‘no’ when you feel that a certain change is not suitable for the project.

25. How good are your communication skills?

Project managers need to have good communication skills. So, don’t be too honest and say that communication skills are your weakest area. The answer has to either ‘good’ or ‘excellent’. But, don’t sound overconfident while saying so. If they ask for examples, be ready with two or three examples in different settings to justify your point.

26. What is your work style?

It is another question to check if you fit in with the company’s culture. It also indicates whether you are self-aware to communicate your work style. Though it sounds vague, this question provides an opportunity to show how you can be an asset to the company. You could talk about your emphasis on speed and efficiency, how you like to work collaboratively, your way of communication etc. Further, you can mention about how you organize your day and how many hours you work.

27. How do you improve your knowledge regarding project management?

Companies want their employees to be fully invested in the jobs that they are applying for. There are many software tools coming up and many processes being invented regularly in the project management landscape. Hence, project managers need to continually upgrade their skills to be relevant. Basically, tell your interviewer about what you are doing to grow in your field. It could be certification courses you are taking or workshops/courses you are attending. Also, you can talk about your interactions with project managers and people in the field to stay up-to-date with the latest.

28. Why do you want to work with this company?

You need to go prepared for this interview question. If their working style suits yours, you can discuss it. If the job you are applying for is the next logical step for your current job, tell them that. Or, even something like you being attracted to their work culture or vision, can be a good response. Better yet, you can say how the job and the company align with your personal growth. This shows that you are looking for a long-term collaboration with the company.

29. Did you face any problems with your co-workers in your previous company?

You might or you might not have faced issues with your former colleagues. But, if you mention that you did, don’t be too negative. You can discuss the problem. However, put your emphasis on what you did to resolve the problem. Give it a happy ending. You can also talk about what has been the learning and how you would handle similar kind of people in the future. It shows your leadership skills.

30. Do you have any questions?

Most of the applicants will say ‘no’ to this answer. But, by asking questions you can stand out from the crowd. It also shows your interest in the company. Your questions can indicate that you want to know a little more about the job you applied for. Or, you can ask them some questions about the organization itself.


                     Good luck with your job hunt.

 

 

 

Top 5 Skills That Make You A Sure Shot Programmer

Top 5 Skills That Make You A Sure Shot Programmer

I got this really funny image on a whatsapp chat as a forward. What do you make of it?
Programmer's Joke
This and many other similar jokes on the internet can lead you to think that programmers are this bunch of nerds who hardly have a reality check. On the contrary, they have a reality check. A mighty good one at that! I mean, who else you will go to but a programmer if you want your computers to do what you want them to do! These are the guys who write, design, test, debug and maintain the source code; undoubtedly one of the most important functions.
Just like any other profession, even the profession of programming needs good quality skills. A very basic one according to me is to understand the query. As we can see in the image at the beginning of this blog post, it is important to really know the query a program is attempting to resolve. I guess this is the basic premise on which everything else will rest. If a programmer gets this bit right, then the technical mumbo jumbo is a cake walk. Well, to a great extent, if not the whole!
Let’s look at some important skills that will make you a super programmer. These skills according to me transform programming from a mere job to an art form.

Use of programming conventions

Programming conventions are guidelines. These guidelines detail out standards for everything, right from naming conventions, styles, practices and methods to use in a particular programming language. A good programmer uses these guidelines. Reason, following guidelines increases the chances of code readability. That is exactly what you want, right! So, follow the conventions to the T.

Create a dynamically modifiable code

A code is necessarily a secret way of communicating via words, letters or pictures. The basic intent is to save the communication from tampering. It is true for the coding done in programming too. A good programmer should create a code that is closed for modifications at the completion of a module. This will protect your code from malicious tampering. A great programmer is the one who closes the code in a way that it can be used to add functionalities as and when a need arises.

Get the right coupling and cohesion

Coupling and cohesion are two critical elements of all programming languages. While coupling is the degree of interdependence between two modules, cohesion is the degree to which two modules belong together. As a good programmer, it is important for you to keep coupling low and cohesion high. The reason is simple. Low coupling enables two different modules to function independently. High cohesion helps better code readability as it deals with inner components of a module working together.

Drop unwanted functions

Someone once said what you cannot convey in one sentence, cannot be conveyed even if you write a whole book. Same thing holds true for programmers. If a programmer lifts an entire code from Google where the need is for one function, it is not a great skill. A great skill in programming takes dropping away unwanted functions. This builds into smooth code readability.

Do away with repetitions

Repetition does not work the same way for everything. If you are learning something new, then repetition works. In the case of programming languages, repetition is redundant if you know how to write a smart code. What you got to do is this. Do away with any kind of repetitive functionality unless it is absolutely necessary. This helps you in keeping the code readable. Apart from this, it also helps you in reusing existing functionalities as the project prolongs and the code becomes big.
Interestingly, most of you reading this post will agree with me in saying that these five skills are essential from becoming a good programmer to a great one. Yet, many will fall in the trap of doing exactly the opposite of these good practices. As a good programmer, it is important to really know where to draw the line.

Angular 4 Interview Questions

Angular 4 Interview Questions

 

Write the CLI command to generate a component in Angular4.

Components are just simple classes which are declared as components with the help of component decorators.
It becomes easy to create an application which already works, with the help of angular CLI commands. “Ng generate” is used to generate components, routes, services, and pipes. Simple test shells are also created with the help of this CLI command. For generating a component in angular4 with the help of CLI command, you need to follow the following syntax-
  • ng generate component component_name;
It generates the component and adds the component to module declarations.

 

10 Common Interview Questions & Answers for Freshers

10 Common Interview Questions & Answers for Freshers Q1. Tell us about yourself. Here you are definitely not going to tell the int...