Demo entry 6350189

an

   

Submitted by anonymous on Mar 07, 2017 at 16:11
Language: HTML + Angular2. Code size: 474 Bytes.

<!DOCTYPE html>
<html ng-app>
<head>
<meta charset=utf-8/>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js">
</script>
<script>
function TextController($scope) {
$scope.someText = 'You have started your journey.';
}
function c2($scope) {
$scope.t2 = 'T2';
}

</script>
<title>My Angular Demo</title>
</head>
<body ng-controller="TextController">
<p>{{someText}}</p><br/>
<p ng-controller="c2">{{t2}}</p>
</body>
</html>

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).