What properties can I use with event.target?

If you were to inspect the event.target with firebug or chrome’s developer tools you would see for a span element (e.g. the following properties) it will have whatever properties any element has. It depends what the target element is: event.target: HTMLSpanElement attributes: NamedNodeMap baseURI: “file:///C:/Test.html” childElementCount: 0 childNodes: NodeList[1] children: HTMLCollection[0] classList: DOMTokenList className: “” … Read more

Calling a function when ng-repeat has finished

var module = angular.module(‘testApp’, []) .directive(‘onFinishRender’, function ($timeout) { return { restrict: ‘A’, link: function (scope, element, attr) { if (scope.$last === true) { $timeout(function () { scope.$emit(attr.onFinishRender); }); } } } }); Notice that I didn’t use .ready() but rather wrapped it in a $timeout. $timeout makes sure it’s executed when the ng-repeated elements … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)