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
var app = angular.module("dependencyinjection", []); | |
app.controller('mainController', function($scope){ | |
$scope.users = [{ | |
name : "Tom", | |
age: 29 | |
},{ | |
name : "Harry", | |
age: 28 |
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
var app=angular.module("dependencyinjection",[]);app.controller("mainController",function(a){a.users=[{name:"Tom",age:29},{name:"Harry",age:28}]}); |
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
var app = angular.module("dependencyinjection", []); | |
app.controller('mainController', ['$scope', function($scope){ | |
$scope.users = [{ | |
name : "Tom", | |
age: 29 | |
},{ | |
name : "Harry", | |
age: 28 |
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
var app=angular.module("dependencyinjection",[]);app.controller("mainController",["$scope",function(e){e.users=[{name:"Tom",age:29},{name:"Harry",age:28}]}]); |
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
<multicast enabled="false"> |
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
<tcp-ip enabled="true"> | |
<interface>10.40.X.Y</interface> | |
</tcp-ip> |
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
<join> | |
<multicast enabled="false"> | |
<multicast-group>224.2.2.3</multicast-group> | |
<multicast-port>54327</multicast-port> | |
</multicast> | |
<tcp-ip enabled="false"> | |
<interface>192.168.1.2</interface> | |
</tcp-ip> | |
<aws enabled="true"> | |
<access-key>my-access-key</access-key> |
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
var peoples = [ | |
{name: 'Agraj', gender:'M', age: 29, address: {city: 'Delhi', pincode: '110064'}}, | |
{name: 'Mark', gender:'M', age: 35, address: {city: 'West Bengal', pincode: '220013'}}, | |
{name: 'Lance', gender:'M', age: 39, address: {city: 'Chandigarh', pincode: '201201'}}, | |
{name: 'Vikas', gender:'M', age: 21, address: {city: 'Noida', pincode: '201301'}}, | |
{name: 'Kanika', gender:'F', age: 21, address: {city: 'Noida', pincode: '201301'}}, | |
{name: 'Arya', gender:'F', age: 9, address: {city: 'New Delhi', pincode: '110058'}}, | |
{name: 'Micheal', gender:'M', age: 45, address: {city: 'Lucknow', pincode: '254321'}}, | |
{name: 'Andromeda', gender:'F', age: 16, address: {city: 'Gurgoan', pincode: '112234'}} | |
]; |
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
trait AService { | |
def service: String | |
} | |
class SomeService extends AService { | |
def service(): String = "someService" | |
} | |
class MyComponent @Inject()(val service: AService) { | |
def callTheService(): String = service.service |
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
trait AService { | |
def service: String | |
} | |
class SomeService extends AService { | |
def service(): String = "someService" | |
} | |
class MyComponent @Inject()(val service: AService) { | |
def callTheService(): String = service.service |
OlderNewer