Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
$scope variable undefined in angular controller
Kapil Bhati
Nov 7 2017 5:53 AM
135
Reply
Hi ,
I have the following example code in my app:
Go
Now i have Angular controller like this :
angular.module('WidgetsApp').controller('Widgetscontroller', function ($scope, factory) {
$scope.getData = function () {
$scope.d = {};
var txt = $scope.d.txt_chart;
var res = factory.getData(txt);
});
})();
but
var txt = $scope.d.txt_chart;
this gives undefined value. how to resolve this. i m new to angular
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to save data with special characters
How to show images from database to bootsatrap carousel(mvc)