Skip to content

Instantly share code, notes, and snippets.

@kfiil
Created January 13, 2015 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kfiil/80637535f0e53bc8a060 to your computer and use it in GitHub Desktop.
Save kfiil/80637535f0e53bc8a060 to your computer and use it in GitHub Desktop.
AngularJS kursus, templates og ng-include
<div id="task-users" class="panel panel-default" ng-include="'/Angular-App/projektweb3/task-details/partial-templates/users.tpl.html'"></div>
<html ng-app>
<!-- Body tag augmented with ngController directive -->
<body ng-controller="MyController">
<input ng-model="foo" value="bar">
<!-- Button tag with ng-click directive, and string expression 'buttonText' wrapped in "{{ }}" markup -->
<button ng-click="changeFoo()">{{buttonText}}</button>
<script src="angular.js">
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment