TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kapil Bhati
NA
256
133k
$scope variable undefined in angular controller
Nov 7 2017 5:53 AM
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
Reply
Answers (
1
)
How to save data with special characters
How to show images from database to bootsatrap carousel(mvc)