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

job opportunities after doing an hands on training for angular.js at kolkata
AngularJS is high in demand if You have good hands on it.
Subhadeep
How to create sliding tabs in ionic ?
We can create sliding tabs using ion-tab in ionic.
Gowravaram
0 0
5

Hello all, I am working as a web (graphic) designer right now, I know basics of HTML, CSS, Photoshop illustrator but I want to become a developer. So I want to know that is Angularjs developer is a good career?

AngularJS is a structural framework for dynamic web apps. It address many of the challenges encountered in developing single-page applications so It has a very good career prospects.
Himani
Hi, I am working as a developer in asp.net mvc, I know jquery. I want to learn UI devlopment framework but I am confused between angular JS or React JS? Which one is better to start learn?
Each of these frameworks have strengths and weaknesses and there is no one shiny framework that makes every developer in the world happy. My suggestion to you is to learn the fundamentals of each of these...
Anand

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

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

Ask a Question

Related Lessons

Difference Between JavaScript and AngularJs
JavaScript: JavaScript is a programming language written for websites to run in the browser. It is used to validate the user input at browser level itself before submitting the page to server for...

Inversion of Control
Problem You have classes that have dependencies on services or components whose concrete type is specified at design time. In this example, ClassA has dependencies on ServiceA and ServiceB. Figure 1 illustrates...

Angular Interview Questions
Ques: Explain the bootstrapping process of angular? Ques: Define the architecture of angular? Ques: What is component? Can you write syntax of decorator for any component? Ques: - Say me the name of...

Angular 4/5 Course
Angular 4/5 Syllabus: HTML Fundamentals: HTML Introduction How WebWorks? What is a Web Page? HTML Basic HTML Fundamentals HTML Attributes HTML Styles HTML Controls HTML Formatting HTML...

Angular JS directives Principles.
Directive is very powerful feature of AngularJS. It easily wired up with controller, html and do the DOM manipulations. Angular AngularJS provide very less details about directive. I thought I will cover...

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