angularjs - Ionic framework Json data retrieving -


hai new ionic framework , frustrated implemented data dummy json . if know me.

its simple. if content.js external file , located on root. follows. have embedded working plunker, play it.

$http.get('content.js').success(function(response) {      //whereever want put data     }); 

here working plunker: http://plnkr.co/edit/hc3iy8hug23n7djis2hp?p=preview


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -