I am creating my first application with AngularJS comming from Backbone. As a first exercise I want to port an existing backbone application that I wrote towards AngularJS.
The application consists of a main view with 3 divs.
<!-- main.html -->
<div id="filter"></div>
<div>
<div id="result-list"></div>
<div id="result-details"></div>
</div>
So far I'm able to create my mainView in Angular
// My Route
$routeProvider.when("/", {
controller: "mainController",
templateUrl: "app/components/main/main.html"
});
...
// My mainController
'use strict';
app.controller('mainController', function ($scope) {});
What I want to do now is bind a second view called filter on the div
filter of my main view. However I read that in Angular you can only have 1 view. And the equivalant of a view in backbone corrresponds to a directive in angular.
I have read into the different semantics in angular but I'm still confused on how I should go further to implement this in my application.
Can anyone help me out understanding ? Maybe I'm still looking at it the wrong way.