AngularJS

Aus wiki
Version vom 29. August 2014, 13:46 Uhr von Christofbuechi (Diskussion | Beiträge) (Die Seite wurde neu angelegt: «== Small Angular JS App == <code><!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <title>TaskMan - AngularJS TaskManager with local Sto…»)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Small Angular JS App

<!doctype html> <html class="no-js"> <head>

   <meta charset="utf-8">
   <title>TaskMan - AngularJS TaskManager with local Storage</title>
   <meta name="viewport" content="width=device-width">
   <link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.css">
   <link rel="stylesheet" href="styles/main.css">
   <script src="scripts/angular.js"></script>
   <script src="scripts/ngStorage.js"></script>
   <script src="scripts/controllers/main.js"></script>

</head> <body ng-app="taskmanApp">

taskman

           Create a new Task:
           <form ng-submit="addTask()">
               <input placeholder="insert task" ng-model="$storage.task.name">
               <select ng-model="$storage.task.prio">
                   <option value="high">High Prio</option>
                   <option value="middle">Middle Prio</option>
               </select>
               <input type="submit" class="btn-primary" value="Insert">
           </form>


</body> </html>