Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<html ng-app="plunker">
<meta charset="utf-8" />
<title>{{ name }}</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.2.x" src="" data-semver="1.2.16"></script>
<script src="app.js"></script>
<body ng-controller="MainCtrl as ctrl">
Le nom : <input type="text" ng-model=""> <button ng-click="ctrl.register()"> Show in Log </button>
<div ng-show="" >Hello {{ }}</div>
<input type="text" ng-model="ctrl.filter">
<div>Registered Users</div>
<tr ng-repeat="user in ctrl.users | filter: {name : ctrl.filter}">
<td>{{ }}</td>
<td>{{ | date | uppercase }}</td>
// Déclaration de l'application : (Cf <html ng-app="plunker"> )
var app = angular.module('plunker', []);
// Déclaration d'un controller : (cf <body ng-controller="MainCtrl"> )
app.controller('MainCtrl', function($log) {
var vm = this; = "Foo";
vm.users = [];
vm.register = function() {
name :,
date :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment