I have a code in which there are three files first is the main one named test.php
然后根据路由调用其他两个文件......
My angular js file is as follows:-
angular.module('formApp', ['ngAnimate', 'ui.router'])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
// route to show our basic form (/form)
.state('form', {
url: '/form',
templateUrl: 'form1.php',
controller: 'formController'
})
// nested states
// each of these sections will have their own view
// url will be nested (/form/profile)
.state('need', {
url: '/need',
templateUrl: 'form2.php'
});
// url will be /form/interests
$urlRouterProvider.otherwise('/form');
})
//我们的表单控制器 .controller(' formController',function($ scope){
$scope.formData = {};
$scope.processForm = function() {
alert('awesome!');
};
});
现在我想通过angularjs路由加载test.php文件的加载表单 ,但是我无法在form1.php中加载css它未加载css的代码部分如下: -
<div class="control-group">
<label class="control-label">Product type</label>
<div class="controls">
<select data-placeholder="Choose Products" name="product_type[]" class="chosen span6" multiple="multiple" tabindex="6">
<optgroup label="Product Type">
<option value="Domain">Domain</option>
<option value="Website">Website</option>
<option value="SMS">SMS</option>
<option value="SEO">SEO</option>
<option value="digital Marketing">Digital Marketing</option>
<option value="Website Meintenece">Website Maintenance</option>
<option value="Domain+website">Domain + Website</option>
<option value="Hosting">Hosting</option>
</optgroup>
</select>
</div>
</div>
我正在使用jquery.chosen插件加载它.....