로딩
요청 처리 중입니다...

Angular.js Services

 Angular.js Services

현재 url 가져오기

The url of this page is:

{{myUrl}}

var app = angular.module('App', []); app.controller('Ctrl', function($scope, $location) { $scope.myUrl = $location.absUrl(); }); 시간 이벤트

{{content}}

var app = angular.module('App', []); app.controller('Ctrl', function($scope, $timeout) { $scope.content= "시간이지나면"; $timeout(function () { $scope.content= "모습이변한다"; }, 2000); });...

원문 링크 : Angular.js Services