This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<title>AngularJS Tutorial</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js"></script> | |
<script src="app.js"></script> | |
<script src="main.ctrl.js"></script> | |
</head> | |
<body ng-app="app" ng-controller="MainController as main"> |
This file contains hidden or 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
angular.module('app').controller("MainController", function(){ | |
var vm = this; | |
vm.title = 'AngularJS Tutorial Example'; | |
/* This is an empty string we'll use later to search through our list. */ | |
vm.searchInput = ''; | |
/* Here's an array of members. */ | |
vm.members = [ | |
{ |
This file contains hidden or 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
angular.module('app', []); |