Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Remove all $element references #348

Closed
mhevery opened this issue May 24, 2011 · 1 comment
Closed

Remove all $element references #348

mhevery opened this issue May 24, 2011 · 1 comment
Milestone

Comments

@mhevery
Copy link
Contributor

mhevery commented May 24, 2011

$element reference on scope cause problems and it encourages people to use DOM nodes from controllers

@mhevery mhevery closed this as completed Jan 18, 2013
@bpbhat77
Copy link

I am using

$.getJSON('../ChkLogin.action', formInput, function(data1) {
                console.log(data1);
                scope.userLogin = data1;
                scope.$apply();
                // $location.path('/home');
            });

instead of $http service

bcus i want

app.controller('loginCtrl', function($scope, $element, loginService) {
$scope.msgtxt = '';
$scope.login = function() {
var formInput = $element.serialize();
loginService.login(formInput, $scope); //call login service
};
});

serialization of form .

any alternate for this issue?

i want form submit bcus in struts my action level variable are getting populated .

if i use $http this is not getting populated :(

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

No branches or pull requests

2 participants