This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"> | |
<role rolename="manager-gui"/> | |
<user password="1" roles="manager-gui,manager-script,admin" username="admin"/> | |
</tomcat-users> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.javaeeeee</groupId> | |
<artifactId>SpringREST</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>SpringREST Maven Webapp</name> | |
<url>http://maven.apache.org</url> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section ng-controller="ParentController as parent"> | |
<h4>Parent Scope</h4> | |
<p>{{parent.onlyParent}}</p> | |
<p>{{parent.myModel}}</p> | |
<article ng-controller="ChildController as child"> | |
<h5>Child Scope</h5> | |
<p>{{child.onlyChild}}</p> | |
<p>{{child.myModel}}</p> | |
<p>{{parent.onlyParent}}</p> | |
<p>{{parent.myModel}}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('HelloController tests', function () { | |
var HelloController; | |
beforeEach(function () { | |
module('app'); | |
inject(function ($controller) { | |
HelloController = $controller('HelloController'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('HelloController scope tests', function () { | |
var scope; | |
beforeEach(function () { | |
module('app'); | |
inject(function ($rootScope, $controller) { | |
scope = $rootScope.$new(); | |
$controller('HelloController as vm', { $scope: scope }); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
angular.module('app') | |
.controller('HelloController', HelloController); | |
function HelloController() { | |
var vm = this; | |
vm.myModel = 'World'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section ng-controller="HelloController as vm"> | |
<h4>AngularJS Greeting</h4> | |
<label for="name">Type your name here:</label> | |
<input id=name type="text" ng-model="vm.myModel"> | |
<p>Hello {{vm.myModel}}!</p> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
angular.module('app') | |
.controller('ChildController', ChildController); | |
ChildController.$inject = ['$scope']; | |
function ChildController($scope) { | |
$scope.myModel = 'Child controller\'s myModel'; | |
$scope.onlyChild = 'Child\'s variable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
angular.module('app') | |
.controller('ParentController', ParentController); | |
ParentController.$inject = ['$scope']; | |
function ParentController($scope) { | |
$scope.myModel = 'Parent controller\'s myModel'; | |
$scope.onlyParent = 'Parent\'s variable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section ng-controller="ParentController"> | |
<h4>Parent Scope</h4> | |
<p>{{onlyParent}}</p> | |
<p>{{myModel}}</p> | |
<article ng-controller="ChildController"> | |
<h5>Child Scope</h5> | |
<p>{{onlyChild}}</p> | |
<p>{{myModel}}</p> | |
<p>{{onlyParent}}</p> | |
</article> |