📜  laravel 将集合传递给 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:59.883000             🧑  作者: Mango

代码示例2
@extends('AdLayout')
     @section('content')
   <  script type="text/javascript">
      var app = angular.module('myApp', []);
      app.controller('langCtrl', function($scope) {
          $scope.languages = langs;
      });
   

   
sdfsdf

Create language

{!! Form::open() !!}

{!! Form::label('Name','Language: ') !!}


{!! Form::submit('Create',['class'=>'btn btn-primary']) !!}  {!! Html::linkAction('NAATIMockTest\LanguageController@index', 'Back', null, array('class' => 'btn btn-primary')) !!}
{!! Form::close() !!}
@endsection