This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myAppTest = angular.module('myAppTest' , []); | |
myAppTest.controller('MyController' , ['$scope' , '$http', function ($scope , $http){ | |
$http.get('js/data.json').success(function(data){ | |
$scope.artists = data; | |
$scope.artistOrder = 'name'; | |
}) | |
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="main" ng-controller="MyController"> | |
<div class="search"> | |
<h1>Artist Search</h1> | |
<label for="">search</label> | |
<input ng-model="query" placeholder="search for artist" autofocus> | |
<label class="formgroup">By: | |
<select ng-model="artistOrder"> | |
<option value="name">Name</option> | |
<option value="reknown">reknown</option> |
OlderNewer