How to access the Angularjs scope of a particular html element from our console?

+1 vote
I want to know the scope of each tag in html  explicitly from the console or by inspect the particular element by angular js comand.

Thanxx in advance!!
Jan 21 in Web Development by kartik
• 1,910 points
31 views

1 answer to this question.

0 votes

Hello,

You should follow the below steps:--

1.Compile and run your html file in browser.

2.Then select the "Hello edureka"(want to inspect scope of this element in my case) and right click and select inspect. The console tab is  will be opened.

3.Then go to console and type angular.element($0).scope()  (This command means angular version of the particular element and $0 means the highlighted element for which scope to be inspect) and then hit enter. You have your desire output.

answered Jan 21 by Niroj
• 3,230 points

edited Jan 21 by Niroj

Related Questions In Web Development

0 votes
1 answer

How many methods of including css in an HTML document?

Hello fignithi, yes!!,you can use external file for css ...READ MORE

answered Jan 16 in Web Development by Niraj

reshown Jan 16 by Sirajul 32 views
0 votes
0 answers

Anyone can help me out to understand the semantic of (document.getElementBYId("demo").innerHTML="Hello") ?

Hello guys, Can Someone helps me to find ...READ MORE

Jan 17 in Web Development by anonymous
• 1,910 points
26 views
0 votes
1 answer

What does cors means in Angularjs and what the use of it?

CORS is Cross Origin Resource Sharing which means you ...READ MORE

answered Jan 29 in Web Development by kartik
• 1,910 points
38 views
0 votes
1 answer

Do all HTML tags come in a pair?

HTML tags can be of two types: 1.Paired ...READ MORE

answered Jan 16 in Web Development by anonymous
27 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20 in Web Development by Niroj
• 3,230 points

edited Jan 21 by Niroj 29 views
+1 vote
1 answer

What is css box module?

Hey, All the element present in html follows ...READ MORE

answered Jan 20 in Web Development by Niroj
• 3,230 points

edited Jan 21 by Niroj 30 views
0 votes
1 answer

Explain the difference between visibility:hidden; and display:none?

hii, visibility:hidden; and display:none are totally different used ...READ MORE

answered Jan 20 in Web Development by Niroj
• 3,230 points
56 views
+1 vote
1 answer

What is the difference between web design and web development?

A designer designs the web pages and ...READ MORE

answered Jan 22 in Web Development by Niroj
• 3,230 points
21 views
+1 vote
1 answer

What are the different ways of using angularjs scope?

Hey!! basically there the three ways of using ...READ MORE

answered Jan 21 in Web Development by Niroj
• 3,230 points
24 views