Last active
August 29, 2015 14:05
-
-
Save Epotignano/f828b835b8ae580ff6db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// adentro de la directiva | |
$http.get(/*URL a donde pedis los datos*/) | |
.success(function(response){ | |
scope.var = response | |
}) | |
.error(function(response){ | |
/**Handle error**/ | |
}) | |
/**** en el template de la directiva ***/ | |
<div> {{ var }}</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment