6.install App II


#1

Hello :slight_smile :
why I'm getting this Note in line 18: "expected an assignment or function call and instead saw an expression."
what did I miss ?? :frowning:
app.directive('installApp', function() {
return {
restrict : 'E',
scope:{},
trmplateUrl:'js/directive.installApp.html' ,
link: function(scope, element, attrs) {
scope.buttonText = "Install",
scope.installed = false,
scope.download = function() {
element.toggleClass('btn-active');
if(scope.installed) {
scope.buttonText = "Install";
scope.installed = false;
} else {
scope.buttonText = "Uninstall";
scope.installed = true;
}
}; /*line18*/
}
};
} );


#2

Even I'm getting that, but when I clicked run, the code worked fine.


#3

yeah mine work too :smiley:
but still feeling annoyed when I see this red warning :3 , so I really want to know WHY !


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.