Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

laravel pass collection to javascript

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

   <div class="container-fluid" ng-app="myApp" ng-controller="langCtrl">
      <div class="row">
        <div class="col-md-8 col-md-offset-2">sdfsdf
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2>Create language
                    </h2>
                </div>

                <div class="panel-body">
                    {!! Form::open() !!}
                        <p class="text-center">
                            {!! Form::label('Name','Language: ') !!}
                            <input type="text" name="searchLanguage" ng-model="searchLanguage">
                        </p>

                        <select name="Name[]" multiple size="10" ng-model="lang" ng-click="show()">
                            <option value="@{{v}}" ng-repeat="(k,v) in languages | filter:searchLanguage">
                                @{{v}}
                            </option>
                        </select><br>

                        <div class="text-center">
                            {!! Form::submit('Create',['class'=>'btn btn-primary']) !!} 
                              {!!   Html::linkAction('NAATIMockTestLanguageController@index', 'Back', null, array('class' => 'btn btn-primary')) !!}
                        </div>
                    {!! Form::close() !!}
                </div>
            </div>
        </div>
    </div>
    </div>
   @endsection
Comment

PREVIOUS NEXT
Code Example
Javascript :: react state scope 
Javascript :: node.js wikipedia api call 
Javascript :: Portez ce vieux whisky au juge blond qui fume 
Javascript :: elasticsearch transport client example 
Javascript :: trim unsafe url dom sanitizer 
Javascript :: connect react native app to local api macos 
Javascript :: processing map in javascript 
Javascript :: how to pass property component in react enzyme 
Javascript :: var relnojudul = 0; 
Javascript :: jwtdecode has no call signatures angular 
Javascript :: test 
Javascript :: curly j 
Javascript :: advantage of array 
Javascript :: how to add class to element on mouseclick with js 
Javascript :: json2csv parse with flatten example javascript 
Javascript :: backbone js event listener 
Javascript :: react native map repeate 
Javascript :: json url data is not showing in console using jquery 
Javascript :: smaler div on devices 
Javascript :: const data = event.currentTarget.value 
Javascript :: target all element besides the clicked one 
Javascript :: dont starve together 
Javascript :: how to make color squares in angular 
Javascript :: convert json in parse inputs azure function 
Javascript :: my datatable in flutter from json repeat the column headers 
Javascript :: push a new route only triggers URL change but not location change 
Javascript :: how to use batch export function forn exports charts in fusioncharts via angularjs 
Javascript :: u017f javascript 
Javascript :: parallaxprovider 
Javascript :: screen.render is not a function in node 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =