Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client binding not triggering a command #4

Open
fselvatici opened this issue Nov 28, 2015 · 1 comment
Open

Client binding not triggering a command #4

fselvatici opened this issue Nov 28, 2015 · 1 comment

Comments

@fselvatici
Copy link

I have binded a function that should trigger a command in the backend.

$scope.updateCookie = angular.bind(this, updateCookie, [$element, $cookies]);
updateCookie = function(args, username, password) {
    $cookies = args[1];
    $element = args[0];
    $cookies["CREDENTIALS"] = username;
    debugger
    zkbind.$($element).command('login', {
        data : {
            username : username,
            password : password
        }
    });
};

The command is triggered but when is received in the _AngularComposer_ it doesn't posted. This is because the detected cmd is _onBindCommand$login_ instead of _onBindCommand_
I am doing something wrong or is a bug?

Thank's

@jumperchen
Copy link
Member

This is an experimental project created based on ZK 7.0.3. If you are interested in learning more, please contact us - [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants