mercredi 21 décembre 2016

Echoing an angular scope variable from php

In php, anything with a $ infront of it is considered a variable and if I try to echo an angular statement like if(...) {echo "return $scope.id;";}, I get an error saying $scope isn't a variable I've defined in php. Does someone know of an easy fix to this?

Aucun commentaire:

Enregistrer un commentaire