专注互联网后端开发与架构

分类“AngularJS”

angularjs ngDialog在弹出框中调用动态数据

var myApplication = angular.module('myApplication', ['ngDialog']);myApplication.controller('MainController', function ($scope, ngDialog) ...
作者:convee 时间:2015-11-11 分类:AngularJS
浏览:6452 评论:90

AngularJs ng-show与ng-hide方法

可用与一个页面中有多个 隐藏内容切换 adminControllers.controller("app-version", ["$scope", function ($scope) { var i; $scope.visible = []; for(i=1;i<=12;i++){ $scope.visible[i] = false; }; ...
作者:convee 时间:2015-9-9 分类:AngularJS
浏览:863 评论:36

AngularJS $routeParams Example

'use strict'; ngRouteModule.provider('$routeParams', $RouteParamsProvider); /** * @ngdoc service * @name $routeParams * @requires $route * * @description * The `$routeParams` service allows y...
作者:convee 时间:2015-9-9 分类:AngularJS
浏览:1442 评论:141

AngularJS fromJson Example

$scope.params = angular.fromJson($routeParams); /** * @ngdoc function * @name angular.fromJson * @module ng * @kind function * * @description * Deserializes a JSON string. * * @pa...
作者:convee 时间:2015-9-9 分类:AngularJS
浏览:1336 评论:124

AngularJS format JSON string output

For example: JSON.stringify({a:1,b:2,c:{d:3, e:4}},null," ") will give you following result: "{ "a": 1, "b": 2, "c": { "d": 3, "e": 4 } }"
作者:convee 时间:2015-9-8 分类:AngularJS
浏览:929 评论:35

AngularJS Cookies Example

angular.module('cookieStoreExample', ['ngCookies']) .controller('ExampleController', ['$cookieStore', function($cookieStore) { // Put cookie $cookieStore.put('myFavorite','oatmeal'); // Get ...
作者:convee 时间:2015-9-8 分类:AngularJS
浏览:851 评论:42