mardi 28 juillet 2015

Angular show div based on URL parameter

Is there a way I can display content based on a URL parameter being present, in Angular?

For example, myfile.php?id=123

<div ng-if="window.location.search.id != ''">
    Show content
</div>

Aucun commentaire:

Enregistrer un commentaire