I'm trying to setup a basic angular app to test some translation logic and somehow I can't get my data to display on the frontend.
Here's my html:
<div ng-app="testApp">
<div ng-controller="myController">
<p >{{ title }}</p>
<p >{{ text }}</p>
</div>
</div>
And my JS:
var testApp = angular.module('testApp', []);
testApp.controller('myController', function ($scope) {
$scope.data = {
title: 'PAGE_TITLE',
text :'some random page text'
};
});
I've created a codepen, added reset.css, jQuery and AngularJS as depedencies, but can't figure out what I'm doing wrong.
Any help appreciated.
{{data.title}}&{{data.text}}