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
Minhaj Hussain
NA
86
6.1k
Inheritence using $scope
Jan 18 2018 12:41 PM
Hi,
I want to ask that like javascript objects we can perform inheritance on objects.i.e.
var obj1=function()
{
this.name=""
} ;
obj1.prototype.getName=function()
{
return this.name ;
}
var obj2=function()
{
this.address=""
};
obj2.prototype.getAddress=function()
{
return this.address;
}
obj2.prototype=obj1;
//Similarly why cant i do this:
$scope.prototype=obj1;
Reply
Answers (
2
)
running angualr js and angualr 2 on same application
How can save Image into database using Angular js