Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Angular - search for key or value in all scopes

Imagine you have big angular page with many controllers, directives, scopes etc. It can be difficult to find if there is already information you need in some of scopes.

I wrote javsascript script which searches for value in all scopes and objects.


clear();
var options = { phrase: "Managetemplates", exact: false };

Javascript - how to break or return value in forEach

Javascript has built-in function forEach

example

var tab = ['a', 'b', 'c'];

tab.forEach(function(el, i) {
  console.log(el, i);
});