Showing posts with label angular. Show all posts
Showing posts with label angular. Show all posts

Monday, September 5, 2016

In html side

<a our-click="save()">Save</a>

In angularjs side(JavaScript)

.directive('ourClick', function() {
     return function(scope, element, attrs) {
        event.stopPropagation();
          selement.bind('touchstart click', function(event) {
          event.preventDefault();
          cope.$apply(attrs.
ourClick);
        });
     };
});

Wednesday, October 28, 2015

If you are not using ng-bind, instead something like this {{text}}. You might see the actual {{text}} for a second before text is resolved (before the data is loaded).
So you could do something like this<span ng-bind="text"> or <span ng-bind-html="text">

Popular Posts

Recent Posts

Unordered List

Text Widget

Powered by Blogger.

Popular Posts