为什么angular.element('<p>').css('color', 'red');不能工作?
angular
.module('app', [])
.controller('MainController', MainController)
;
function MainController() {
// angular.element('p').css('color', 'red'); ERROR. Now I see what
我已经使用generator-ionic搭建了ionic项目,并创建了一个空白项目。我尝试添加一个状态,但应用程序不加载在任何状态中定义的模板。
这是我的app.js
'use strict';
angular.module('IonicCarOPedia', ['ionic'])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to s