Skip to content

A way to tag custom bindings in the view that only get executed on specified broadcast

Notifications You must be signed in to change notification settings

scottmas/angular-custom-bind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Angular Custom Bind


Angular custom bind is a tool built to allow users to define custom delimiters in the view that only update on specified broadcasts.

This module is still in super early stages of development.

The biggest issues (which is a huge one) is that once the binding is evaluated once the html is permanently changed.

In order to get started, first inject the module into your own Config

angular.module('yourApp', ['customBind', ...])

Controller:

$scope.foo = 1;
$scope.bar = "Sup dawgs";
//Bind double square brackets to evaluate on $routeChangeSuccess
customBind.set("[[", "]]", "$routeChangeSuccess");

View

<div data="[[foo]]">Message: [[bar]]</div>

Rendered view

<div data="1">Message: bar</div>

Note: This service currently only supports setting broadcast listeners on the $rootScope

About

A way to tag custom bindings in the view that only get executed on specified broadcast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published