How to use javascript(Angular.js) with laravel get php url(asset) -


i use javascript(angular.js) laravel

<aside data-ng-include=" {{ asset('layout/nav') }} " id="nav-container"></aside> 

but error:notfoundhttpexception load no path,

what can read .php file?

im little confused on trying do, seems using asset() link directory. use laravel function link_to() instead, since made generate links paths.

here link laravel documentation more information on link_to() , asset():

http://laravel.com/docs/4.2/helpers#urls


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -