Posts

Showing posts from February, 2017

Fill a dropdown list with data using Angularjs and a restful API

Image
To FIll dropdown list using angularjs in different ways like static ,dynamic and using rest api as well

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
    <script src="Scripts/angular.min.js"></script>
    <script type="text/javascript">
        var app = angular.module('sampleapp', [])
        app.controller('samplecontrol', function ($scope) {
            $scope.sample = [{
                id: '1',
                name: '-- select --'
            }, {
                id: '2',
                name: '.Net'
            }, {
                id: '3',
                name: 'Java'
            }, {
                id: '4',
                name: 'PHP'
            }, {
                id: '5',
                name: 'Angularjs'
            }, {
                id: '6',
      …