Support the ongoing development of Laravel.io →
Requests Views Blade

Hello Laravel people, Anybody know how to solve by using AngularJS file with Laravel I am not sure how to do that? I would like to put into my blog.blade.php the file is http://jsfiddle.net/ironheartbj18/647czrr4/ the line at approx 28 which is

 <li ng-repeat="post in blog.posts" class="col-s-4" ng-class="{ 'reset-s' : $index%3==0 }" ng-click="blog.selectTab($index)">
                         <h3>{{post.title}}</h3>

the Laravel said "Whoop there was an error" syntax error, unexpected ':', expecting ',' or ';'. I dont understand what is the cause the error? I have javascript file in blog.blade.php and css too.

I have tried @yield('angular') (put index.html in there) @stop

I have other methods


@yield('angular')
 View::make('app/index.html');
{{{ asset('app/index.html')}}}"
@stop

@include('app/index.html')

and now it said Whoop there is an error View [app/index.html] not found. (View: /home/vagrant/Code/vanvlymen/app/views/blog.blade.php).

and it does not work? Anybody ideas?

I really need this for my portfolio.

Last updated 3 years ago.
0

Just use direct route and include your angular index.html file.

Last updated 10 years ago.
0

I figured it out all night till I find the solution was that the file suppose to change to index.php and put in there like @include(index)

also I have tried direct route and put in there View::make(index.html); the index.html was in the public/index.html folder and it failed.

Can be put any of AngularJs file in the public folder when it necessary? Does the extension have to change from .html to .php?

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.