Where should we implement the DOM Manipulation in Angularjs ?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

.Net Developer

To manipulate the DOM we have directives in Angular JS like ng-show, ng-hide etc. Basically a directive is used to generate the dynamic content i.e., HTML at run time.
Comments

DOM manipulation is achieved by directives in angular js , directives generally introduce a new behavior to DOM ng-show,ng-if are the predefined directives in angular js, we can also write our own (custom) directives.
Comments

Project Manager | Scrum Master | Front-End Developer

You can implement DOM manipulations mainly in the development of Custom Directives.
Comments

Get trained with IT experts in .NET MVC, Android and Xamarin.

Basically in angular js dom manipulation is perform in controllers. But in angular 2 we should implement the DOM manipulation using structural directives. Structural directives are used to remove and add dom elements. This is perform in template or in separate html file. And then we provide link URL...
read more
Basically in angular js dom manipulation is perform in controllers. But in angular 2 we should implement the DOM manipulation using structural directives. Structural directives are used to remove and add dom elements. This is perform in template or in separate html file. And then we provide link URL to component. read less
Comments

Trainer

DOM manipulation should be in a directive instead of the controller. I would define a focus input directive and use it on the button.
Comments

Trainer

DOM manipulation is not advisable in Angular JS.
Comments

View 4 more Answers

Related Questions

What is routing in angularjs?
If you want to navigate to different pages in your application, but you also want the application to be a SPA (Single Page Application), with no page reloading, you can use the switching Route module. The...
Srikanth
0 0
9
Hi Expert, I am working in one of the MNC as developer with .Net as technology. I am looking for a job change for which i believe .Net is not sufficient. Could you please suggest some advanced technologies that can help me in a job change.
Hi Prashant, If you have more than 3-4 yrs. experience in .Net than you will have to continue in .Net only but try to improve expertise on RDBMS concept, web application design, database support, SQL,...
Prashant

Which JS Framework is Easy in between Angular JS and React JS ?

With mmy personal experience go with rect js is good but if you're starting fresh I would suggest go with anguler s as they have more ducoumentations. here is the discussion link for reference : https://www.quora.com/What-are-the-differences-between...
Sekhar

As web designer what is easy and useful to learn Angular or React?

If you are having prior Javascript knowledge then React is easy than Angular.
Nikunj
Hi, I am working as a web designer and want to work as UI developer. So what should I have to learn initially? And learning Angular Js would be a good option?
It is good choice web designer to become web developer (UI developer). Start with the basics first learn HTML and CSS, Then go and continue with bootstrap and Angular js.
Mudita

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Top 6 Technology Trends for 2020
Technology has been evolving at a pace that the annual predictions about trends may seem to be outdated before they go live as a published blog post or article. The technology when evolves...

Dependency Injection in Angular 2
Dependency injection Dependency injection is a way to supply a new instance of a class with the fully-formed dependencies it requires. Most dependencies are services. Angular uses dependency injection...


AngularJS Basics- 1
This is my first blog.I am just explaining the basics of AngularJS and Sample application in an interesting way so that anyone can create an Angular application. Let’s see how we can create :) Angular.js...

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

Recommended Articles

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Looking for Angular.JS Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you